Always select for property notify for maintaining window state.
* gdk/x11/gdkwindow-x11.c (gdk_window_new): (gdk_window_set_events): Always select for property notify for maintaining window state. * gdk/x11/gdkevents-x11.c (gdk_event_translate): Only propagate property notifys if they were selected by gdk_window_set_events.
This commit is contained in:
@ -445,7 +445,7 @@ gdk_window_new (GdkWindow *parent,
|
||||
visual = gdk_screen_get_system_visual (screen);
|
||||
xvisual = ((GdkVisualPrivate*) visual)->xvisual;
|
||||
|
||||
xattributes.event_mask = StructureNotifyMask;
|
||||
xattributes.event_mask = StructureNotifyMask | PropertyChangeMask;
|
||||
for (i = 0; i < _gdk_nenvent_masks; i++)
|
||||
{
|
||||
if (attributes->event_mask & (1 << (i + 1)))
|
||||
@ -2595,7 +2595,7 @@ gdk_window_set_events (GdkWindow *window,
|
||||
if (!GDK_WINDOW_DESTROYED (window))
|
||||
{
|
||||
GDK_WINDOW_OBJECT (window)->event_mask = event_mask;
|
||||
xevent_mask = StructureNotifyMask;
|
||||
xevent_mask = StructureNotifyMask | PropertyChangeMask;
|
||||
for (i = 0; i < _gdk_nenvent_masks; i++)
|
||||
{
|
||||
if (event_mask & (1 << (i + 1)))
|
||||
|
||||
Reference in New Issue
Block a user