mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 03:10:09 +00:00
Ignore all events if the app is not active
This commit is contained in:
parent
2c043566fc
commit
f455b478e7
@ -1237,6 +1237,12 @@ gdk_event_translate (GdkEvent *event,
|
||||
int x_root, y_root;
|
||||
gboolean return_val;
|
||||
|
||||
/* Ignore events altogether when we're not active, otherwise we get
|
||||
* tooltips etc for inactive apps.
|
||||
*/
|
||||
if (![NSApp isActive])
|
||||
return FALSE;
|
||||
|
||||
/* There is no support for real desktop wide grabs, so we break
|
||||
* grabs when the application loses focus (gets deactivated).
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user