[gtk+/gtk-2-16] Don't enforce property change events on the root window
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/gtk-2-16] Don't enforce property change events on the root window
- Date: Mon, 11 May 2009 12:14:17 -0400 (EDT)
commit 5d8a4f78aba64aea32d3bad8a3a8a1e1fd2bf361
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 10 01:54:43 2009 -0400
Don't enforce property change events on the root window
The code in gdk_x11_window_set_events is only meant to enforce
property change events on child windows. Pointed out in bug 531490.
---
gdk/x11/gdkwindow-x11.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 0a09f67..8296674 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -3557,13 +3557,14 @@ static void
gdk_window_x11_set_events (GdkWindow *window,
GdkEventMask event_mask)
{
- long xevent_mask;
+ long xevent_mask = 0;
int i;
if (!GDK_WINDOW_DESTROYED (window))
{
GDK_WINDOW_OBJECT (window)->event_mask = event_mask;
- xevent_mask = StructureNotifyMask | PropertyChangeMask;
+ if (GDK_WINDOW_XID (window) != GDK_WINDOW_XROOTWIN (window))
+ xevent_mask = StructureNotifyMask | PropertyChangeMask;
for (i = 0; i < _gdk_nenvent_masks; i++)
{
if (event_mask & (1 << (i + 1)))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]