1
0
Fork 0

Platform/Unix/X11Mouse: use X11Display::getFocused() to get the coordinates relative to the focused window.

This commit is contained in:
Henrik Hautakoski 2020-12-20 16:09:16 +01:00
parent 227d58725d
commit f71cfa86f2
2 changed files with 27 additions and 7 deletions

View file

@ -29,12 +29,16 @@ protected :
virtual void update(InputModule *input);
void updateFocusedWindow();
protected :
::Display* m_disp;
::Window m_win;
::Window m_win; // Focused window.
Vector2f m_position;
Vector2f m_abs_position;
unsigned int m_btn_state;
};