forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
2e9385efe2
commit
5d8a4f78ab
@ -3557,13 +3557,14 @@ static void
|
|||||||
gdk_window_x11_set_events (GdkWindow *window,
|
gdk_window_x11_set_events (GdkWindow *window,
|
||||||
GdkEventMask event_mask)
|
GdkEventMask event_mask)
|
||||||
{
|
{
|
||||||
long xevent_mask;
|
long xevent_mask = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!GDK_WINDOW_DESTROYED (window))
|
if (!GDK_WINDOW_DESTROYED (window))
|
||||||
{
|
{
|
||||||
GDK_WINDOW_OBJECT (window)->event_mask = event_mask;
|
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++)
|
for (i = 0; i < _gdk_nenvent_masks; i++)
|
||||||
{
|
{
|
||||||
if (event_mask & (1 << (i + 1)))
|
if (event_mask & (1 << (i + 1)))
|
||||||
|
Loading…
Reference in New Issue
Block a user