From feaba9cbeef67e882d4e3fbb5aaa237db54479b7 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Mon, 15 Dec 2008 18:47:24 -0600 Subject: [PATCH] winex11: select StructureNotifyMask input on all windows --- dlls/winex11.drv/event.c | 2 +- dlls/winex11.drv/window.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index e45b4e7..a5d2e85 100644 --- a/dlls/winex11.drv/event.c +++ b/dlls/winex11.drv/event.c @@ -803,7 +803,7 @@ void X11DRV_ConfigureNotify( HWND hwnd, XEvent *xev ) if (!hwnd) return; if (!(data = X11DRV_get_win_data( hwnd ))) return; - if (!data->mapped || data->iconic) return; + if (!data->mapped || data->iconic || !data->managed) return; /* Get geometry */ diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index db34f20..dfbb210 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -307,8 +307,9 @@ static int get_window_attributes( Display *display, struct x11drv_win_data *data attr->backing_store = NotUseful; attr->event_mask = (ExposureMask | PointerMotionMask | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | - KeyPressMask | KeyReleaseMask | FocusChangeMask | KeymapStateMask); - if (data->managed) attr->event_mask |= StructureNotifyMask | PropertyChangeMask; + KeyPressMask | KeyReleaseMask | FocusChangeMask | + KeymapStateMask | StructureNotifyMask); + if (data->managed) attr->event_mask |= PropertyChangeMask; return (CWOverrideRedirect | CWSaveUnder | CWColormap | CWCursor | CWEventMask | CWBitGravity | CWBackingStore); -- 1.5.6.3