We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 562 - respect xinerama settings for "0"
Summary: respect xinerama settings for "0"
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 1.2
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-1.2.14
: 511 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-27 13:08 UTC by Mike Frysinger
Modified: 2009-09-21 00:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Frysinger 2008-02-27 13:08:16 UTC
this patch by Diego Pettenò <flameeyes@gentoo.org> for SDL-1.2:

The attached patch applies over latest ~arch SDL version, and allows to use the
xinerama support to launch an application full screened on the head "0".

The SDL_VIDEO_FULLSCREEN_HEAD environment variable sets the head on which the
full screen will be displayed, but if you set it to 0, the code simply ignores
it as unset. My patch changes the unset value to -1, so that the 0 value can be
used correctly. Without this, trying to get fullscreen on head 0 would get the
same result than not having xinerama enabled at all.

http://sources.gentoo.org/media-libs/libsdl/files/libsdl-1.2.11-xinerama-head-0.patch

SDL-1.3 doesnt seem to have any code like this, but it's still good for SDL-1.2
Comment 1 Alexander Darovsky 2008-12-07 21:02:43 UTC
I confirm. This bug exists in Ubuntu 8.10 version. It prevents SDL applications from running properly on first Xinerama screen, making them useless for me.

This happens because set up Xinerama mode is overwritten in XVidMode code block. The patched version works properly. Please apply this patch to the upstream version.
Comment 2 Ryan C. Gordon 2009-09-13 15:38:40 UTC
*** Bug 511 has been marked as a duplicate of this bug. ***
Comment 3 Ryan C. Gordon 2009-09-13 16:33:33 UTC
Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14.

Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla).

--ryan.
Comment 4 Sam Lantinga 2009-09-21 00:21:13 UTC
Thanks for the patch!  This has been applied for SDL 1.2.14.