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 514

Summary: Gnome keeps trying to start screensaver when in SDL app in fullscreen
Product: SDL Reporter: Alex Deriziotis <deriziotis>
Component: eventsAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P3 CC: deriziotis
Version: 1.2.11Keywords: target-1.2.14
Hardware: x86   
OS: Linux   

Description Alex Deriziotis 2007-11-14 01:35:00 UTC
I've got a fresh Ubuntustudio 7.10 Gutsy installation, which uses the 1.2.11-9ubuntu2 package.

When playing x-Moto in fullscreen, and the idle-time for the screensaver to kick-in expires, the game snaps out of fullscreen into windowed mode. I can then press alt+enter to go back into fullscreen.

If I disable the screensaver this stops happening.

I've found that the same thing happens on Scorched3D on a vanilla Ubuntu 7.04, but was resolved somewhere in Gutsy, but I couldn't figure out where. Perhaps the Scorched3d developers implemented a fix since I posted on their forums about this.

Someone else has had a similar problem with X-Moto. It went away when he stopped using GNOME. His guess was that a certain GNOME application (the window manager, Metacity, comes to mind) is intercepting key presses for whatever reason, but when an SDL game requests a full-screen window it is no longer able to detect those key presses so it assumes no one is at the keyboard.
Comment 1 Alex Deriziotis 2007-11-14 01:36:07 UTC
When I say 1.2.11-9ubuntu2 package, I mean the libsdl1.2debian (1.2.11-9ubuntu2) package.
Comment 2 Alex Deriziotis 2007-11-22 06:27:17 UTC
Same behaviour while playing Trigger fullscreen (http://sourceforge.net/projects/trigger-rally/)
Comment 3 Ryan C. Gordon 2009-09-13 15:40:34 UTC
I think this was a metacity bug back in the days, but we should retest for 1.2.14.

--ryan.
Comment 4 Ryan C. Gordon 2009-09-13 16:33:24 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 5 Sam Lantinga 2009-09-20 23:26:32 UTC
I believe this is fixed for SDL 1.3, which has a much better architecture for controlling these kinds of things.
Comment 6 Alex Deriziotis 2009-10-21 06:49:41 UTC
just tested this on ubuntu karmic w/ libsdl 1.2.13, fixed for me. thanks
Comment 7 Sam Lantinga 2009-10-21 07:35:05 UTC
Thanks!