[gtk+/client-side-windows: 232/284] Ignore all events if the app is not active
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 232/284] Ignore all events if the app is not active
- Date: Thu, 2 Apr 2009 14:19:25 -0400 (EDT)
commit f455b478e7152fdf05fe8a05f2ad08702edb5388
Author: Richard Hult <richard imendio com>
Date: Mon Feb 2 15:51:11 2009 +0100
Ignore all events if the app is not active
---
gdk/quartz/gdkevents-quartz.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index 6039152..a5ffa58 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -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).
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]