mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Linux: Don't keep Alt flag pressed when we Alt+tab the window
This commit is contained in:
parent
5e7cc50cb0
commit
677d5253ad
@ -2353,6 +2353,9 @@ static void _xwin_private_process_event(XEvent *event)
|
||||
case FocusOut:
|
||||
_switch_out();
|
||||
_xwin_keyboard_focus_handler(&event->xfocus);
|
||||
/* Remove Alt key flag (so if we switch to another window
|
||||
with Alt+tab the Alt flag isn't kept pressed) */
|
||||
_key_shifts &= ~KB_ALT_FLAG;
|
||||
break;
|
||||
case ButtonPress:
|
||||
/* Mouse button pressed. */
|
||||
|
@ -204,7 +204,7 @@ public:
|
||||
bool isKeyPressed(KeyScancode scancode) override {
|
||||
#ifdef ALLEGRO_UNIX
|
||||
if ((scancode == kKeyAlt) &&
|
||||
(key_shifts & KB_ALT_FLAG)) {
|
||||
(_key_shifts & KB_ALT_FLAG)) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user