rpms/xgalaxy/F-11 xgalaxy-2.0.34-fullscreen-viewport.patch, NONE, 1.1

Hans de Goede jwrdegoede at fedoraproject.org
Fri Nov 6 12:15:48 UTC 2009


Author: jwrdegoede

Update of /cvs/extras/rpms/xgalaxy/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv16330

Added Files:
	xgalaxy-2.0.34-fullscreen-viewport.patch 
Log Message:
* Thu Nov  5 2009 Hans de Goede <hdegoede at redhat.com> 2.0.34-14
- Fix sound not working (replace oss code with alsa code)
- Fix building with latest libXxf86dga headers


xgalaxy-2.0.34-fullscreen-viewport.patch:
 makewindow.c |    7 +++++++
 1 file changed, 7 insertions(+)

--- NEW FILE xgalaxy-2.0.34-fullscreen-viewport.patch ---
diff -up xgalaga-2.0.34/libsprite/makewindow.c~ xgalaga-2.0.34/libsprite/makewindow.c
--- xgalaga-2.0.34/libsprite/makewindow.c~	2009-09-11 08:48:44.000000000 +0200
+++ xgalaga-2.0.34/libsprite/makewindow.c	2009-09-11 08:50:50.000000000 +0200
@@ -642,6 +642,13 @@ void W_ToggleFullscreen(_win)
       }
     }
         
+    /* Warp the pointer to the upper left corner (where our fs_window is),
+       this is necessary as the: XF86VidModeSetViewPort() call below does
+       not seem to do anything on newer Xorg servers, instead the viewport
+       seems to always be centered at the last mouse cursor position. */
+    XWarpPointer(W_Display, None, XDefaultRootWindow(W_Display),
+                 0, 0, 0, 0, 0, 0);
+
     /* Switch video mode.  */
     if ((i >= 0) &&
         ((modes[i]->hdisplay != mode.hdisplay) ||




More information about the scm-commits mailing list