1
0
Fork 0

Platform/Unix/X11Keyboard: only update state and signal key down if we have a focused window.

This commit is contained in:
Henrik Hautakoski 2020-12-20 16:29:12 +01:00
parent 6c96a3d9a1
commit 080c4f77c3
2 changed files with 21 additions and 3 deletions

View file

@ -27,6 +27,7 @@ protected :
private :
::Display* m_disp;
::Window m_win; // Focused window
// Cached keyboard state.
char m_key_state[32];