x11drv: focus stealing bugfix
Todd Mokros
tmokros at tmokros.net
Fri Aug 19 15:08:28 CDT 2005
Back in February, the patch that removed the WS_EX_MANAGED
window property introduced a tiny change in logic that caused
a mud client to steal focus whenever it ran a script running
in managed mode. This patch fixes the logic, and the focus
stealing behaviour.
This patch may be related to bugs 2819, 2891, 2983.
ChangeLog:
* Fix a focus stealing bug introduced in revision 1.94
of dlls/x11drv/window.c.
Index: dlls/x11drv/window.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/window.c,v
retrieving revision 1.115
diff -u -p -r1.115 window.c
--- dlls/x11drv/window.c 27 Jul 2005 15:22:58 -0000 1.115
+++ dlls/x11drv/window.c 19 Aug 2005 18:58:00 -0000
@@ -1177,7 +1177,7 @@ void X11DRV_SetFocus( HWND hwnd )
hwnd = GetAncestor( hwnd, GA_ROOT );
if (!(data = X11DRV_get_win_data( hwnd ))) return;
- if (!data->managed || !data->whole_window) return;
+ if (data->managed || !data->whole_window) return;
/* Set X focus and install colormap */
wine_tsx11_lock();
More information about the wine-patches
mailing list