Vincent Povirk : winex11.drv: Allow windows in a virtual desktop to have X focus.
Alexandre Julliard
julliard at winehq.org
Thu Nov 12 10:22:11 CST 2009
Module: wine
Branch: master
Commit: 05f00f4ed86697d6e0eb45e5157b867db08c75dd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=05f00f4ed86697d6e0eb45e5157b867db08c75dd
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Wed Nov 11 13:29:58 2009 -0600
winex11.drv: Allow windows in a virtual desktop to have X focus.
---
dlls/winex11.drv/window.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 4bbd5de..5df7df2 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -2025,14 +2025,11 @@ void CDECL X11DRV_SetFocus( HWND hwnd )
wine_tsx11_lock();
changes.stack_mode = Above;
XConfigureWindow( display, data->whole_window, CWStackMode, &changes );
- if (root_window == DefaultRootWindow(display))
- {
- /* we must not use CurrentTime (ICCCM), so try to use last message time instead */
- /* FIXME: this is not entirely correct */
- XSetInputFocus( display, data->whole_window, RevertToParent,
- /* CurrentTime */
- GetMessageTime() - EVENT_x11_time_to_win32_time(0));
- }
+ /* we must not use CurrentTime (ICCCM), so try to use last message time instead */
+ /* FIXME: this is not entirely correct */
+ XSetInputFocus( display, data->whole_window, RevertToParent,
+ /* CurrentTime */
+ GetMessageTime() - EVENT_x11_time_to_win32_time(0));
wine_tsx11_unlock();
}
More information about the wine-cvs
mailing list