More on "no keyboard events in ddraw application"

Robert Glowczynski robertg at aurox.org
Thu Jan 8 01:27:23 CST 2004


Hello,
I had the same problem as Oleg Prokhorov (no keyboard input in
fullscreen games) and following patch fixed it
(just a single line in Randr and XVid drivers). I do not know if
something gets broken by it; I have tested it with Railroad Tycoon II
demo.


--- wine-20031212/dlls/x11drv/xvidmode.c.orig   2003-11-26
19:59:36.000000000 -0500
+++ wine-20031212/dlls/x11drv/xvidmode.c        2004-01-06
15:57:58.000000000 -0500
@@ -143,6 +143,7 @@
 #else
   XWarpPointer(gdi_display, None, DefaultRootWindow(gdi_display), 0, 0,
0, 0, 0, 0);
 #endif
+  XSetInputFocus(gdi_display, DefaultRootWindow(gdi_display),
RevertToPointerRoot, CurrentTime);
   XSync(gdi_display, False);
   wine_tsx11_unlock();
 }
--- wine-20031212/dlls/x11drv/xrandr.c.orig     2004-01-06
16:00:30.000000000 -0500
+++ wine-20031212/dlls/x11drv/xrandr.c  2004-01-06 16:00:10.000000000
-0500
@@ -174,6 +174,8 @@
     {
         ERR("Resolution change not successful -- perhaps display has
chaned?");
     }
+    XSetInputFocus(gdi_display, DefaultRootWindow(gdi_display),
RevertToPointerRoot, CurrentTime);
+
     XRRFreeScreenConfigInfo(sc);
     wine_tsx11_unlock();
 }

Thank you for great work, wine developers!
-- 
::Robert Glowczynski
::email: robertg at aurox.org
::Aurox Core Team http://www.aurox.org
::http://www.distrowatch.com/table.php?distribution=aurox




More information about the wine-devel mailing list