You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There were two issues.
- GNOME sends a different event type when alt-tabbing, at least on
Ubuntu 22.04. Adjusted the code to use this alternate event type.
- When GTK_TOPLEVEL flag is on, we were getting duplicate events with
Wayland. Adjusted the code to not listen to the duplicate events.
Fixesliballeg#1390, liballeg#1367
There were two issues.
- GNOME sends a different event type when alt-tabbing, at least on
Ubuntu 22.04. Adjusted the code to use this alternate event type.
- When GTK_TOPLEVEL flag is on, we were getting duplicate events with
Wayland. Adjusted the code to not listen to the duplicate events.
Fixes#1390, #1367
I noticed that on my Linux system, the ALLEGRO_EVENT_DISPLAY_SWITCH_IN is only generated when clicking on a window, but not when alt-tabbing.
So:
Run a game window
Click outside the window
Click on the window again
-> ALLEGRO_EVENT_DISPLAY_SWITCH_IN is generated
Run a game window
Alt-tab to a different window
Alt-tab to the game window again
-> NO event generated
I would expect the behavior to be the same in both cases, as indeed it is on my Windows system.
I noticed this problem with Allegro 5.2.8.0 and Ubuntu 22.04.
The text was updated successfully, but these errors were encountered: