Vincent Povirk : winex11: Select StructureNotifyMask input on all windows.
Alexandre Julliard
julliard at winehq.org
Sat Jan 10 11:16:43 CST 2009
Module: wine
Branch: master
Commit: 538cf8b847ed0a4ea0fbabce47846eb730dbb1fb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=538cf8b847ed0a4ea0fbabce47846eb730dbb1fb
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Mon Dec 15 18:47:24 2008 -0600
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..99156b6 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);
More information about the wine-cvs
mailing list