Re: [AD] Another X11 glitch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> "I've figured out what it is (more or less.) It only happens in 1024x768
> fullscreen with the mouse not in use, so it's not in the grabber or test
> program, just the demo game. That was the tipoff. The issue is that the
> pointer is moved to the bottom left, putting it on top of the KDE menu
> icon (on my system at least), causing KDE to redraw the icon at a larger
> size (because I have it configured to.) I'd fix it if I knew anything
> about X calls."

Confirmed, with a properly configured KDE panel (top of the screen, 
auto-hiding disabled, icon-zooming enabled). It's nice to have the big "K" 
logo in the top left corner of the screen when playing the demo game ;-)

I'd say it's typically a Windows bug. With KDE riddled with more and more 
eye-candy features like this icon-zooming, we will very likely run into such 
problems more and more frequently in the future.

The problem is the "hack" used when setting the fullscreen mode: is it really 
needed? All seems to work fine without it on my system.

--- /home/eric/cvs/allegro/src/x/xwin.c	Sat Jan 18 13:40:49 2003
+++ allegro/src/x/xwin.c	Wed Jan 22 15:51:57 2003
@@ -716,10 +716,12 @@
       /* Hack: make the window fully visible and center cursor.  */
       XMoveWindow(_xwin.display, _xwin.window, 0, 0);
       XF86VidModeSetViewPort(_xwin.display, _xwin.screen, 0, 0);
+#if 0
       XWarpPointer(_xwin.display, None, _xwin.window, 0, 0, 0, 0, 0, 0);
       XWarpPointer(_xwin.display, None, _xwin.window, 0, 0, 0, 0, w - 1, 0);
       XWarpPointer(_xwin.display, None, _xwin.window, 0, 0, 0, 0, 0, h - 1);
    XWarpPointer(_xwin.display, None, _xwin.window, 0, 0, 0, 0, w - 1, h -1);
+#endif
    XWarpPointer(_xwin.display, None, _xwin.window, 0, 0, 0, 0, w / 2, h /2);
       XSync(_xwin.display, False);
 	  

-- 
Eric Botcazou




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/