Patches to fix fullscreen games viewport issues with recent Xorg versions
Hans de Goede
hdegoede at redhat.com
Fri Nov 13 02:04:36 PST 2009
On 11/11/2009 11:12 PM, Miriam Ruiz wrote:
> 2009/11/11 Hans de Goede<hdegoede at redhat.com>:
>> With recent Xorg versions XF86VidModeSetViewPort() does not seem to
>> do anything. So fullscreen games which place an undecorated window
>> at 0,0 and then do XF86VidModeSetViewPort(.., 0, 0) no may end up with
>> the viewport wrong (showing part of the game and part of the
>> This can be workedaround by doing a XWarpPointer() call to 0, 0
>> before XF86VidModeSwitchToMode().
>> SDL is already doing this, attached are patches for:
>> ClanLib-0.8 / 1.0 (0.6 and 2.x are not affected)
> Thanks Hans!
> Do you know from which version of Xorg is this happening,
Not exactly, I think it has been happening for a while before I
noticed (it does not happen if your cursor is in the vicinity
of the top left corner of the screen when starting a game).
> and if the
> fix works properly with previous versions?
The workaround does not cause any issues for / with older
More information about the Games