Alexandre Julliard : winex11: Don'
t try to activate the desktop window on take focus.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Aug 17 06:30:19 CDT 2007
Module: wine
Branch: master
Commit: eaad370987fd0f95b17606e4ff33d0751cf52284
URL: http://source.winehq.org/git/wine.git/?a=commit;h=eaad370987fd0f95b17606e4ff33d0751cf52284
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Aug 16 23:43:58 2007 +0200
winex11: Don't try to activate the desktop window on take focus.
---
dlls/winex11.drv/event.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c
index 1f9d2a9..f3010de 100644
--- a/dlls/winex11.drv/event.c
+++ b/dlls/winex11.drv/event.c
@@ -349,6 +349,7 @@ static inline BOOL can_activate_window( HWND hwnd )
LONG style = GetWindowLongW( hwnd, GWL_STYLE );
if (!(style & WS_VISIBLE)) return FALSE;
if ((style & (WS_POPUP|WS_CHILD)) == WS_CHILD) return FALSE;
+ if (hwnd == GetDesktopWindow()) return FALSE;
return !(style & WS_DISABLED);
}
More information about the wine-cvs
mailing list