Focus behaviour

Martin Dalecki dalecki at evision-ventures.com
Thu Feb 14 08:24:58 CST 2002


The following is fixing the input focus handling in case of wine running
with control by WM diabled.

-------------- next part --------------
diff -ur wine/dlls/x11drv/window.c wine-new/dlls/x11drv/window.c
--- wine/dlls/x11drv/window.c	Mon Jan 21 19:41:27 2002
+++ wine-new/dlls/x11drv/window.c	Mon Feb  4 17:22:56 2002
@@ -339,7 +339,7 @@
     /* wm protocols */
     i = 0;
     protocols[i++] = wmDeleteWindow;
-    if (wmTakeFocus) protocols[i++] = wmTakeFocus;
+/*    if (wmTakeFocus) protocols[i++] = wmTakeFocus; */
     XSetWMProtocols( display, data->whole_window, protocols, i );
 
     /* class hints */
@@ -408,7 +408,8 @@
         wm_hints->flags = InputHint | StateHint | WindowGroupHint;
         /* use globally active model if take focus is supported,
          * passive model otherwise (cf. ICCCM) */
-        wm_hints->input = !wmTakeFocus;
+/*        wm_hints->input = !wmTakeFocus; */
+	wm_hints->input = True;
 
         set_icon_hints( display, win, wm_hints );
 


More information about the wine-patches mailing list