This patch adds the ability to toggle apps and games using libSDL's fullscreen mode between full and windowed using a few different key sequences. * Right-Alt & Enter - Toggle between FullScreen/Windowed. * Left-Alt & Enter - Iconify Window. * Left-Control & G - Disable the mouse grab that keeps the cursor inside the window. * Right-Control & G - Re-enable the mouse grab to keep the cursor inside the window. Testing w/ libsdl-1.2.9 and Neverwinter Nights, Frozen Bubble, and Tomatoes worked as advertised. Patches against older versions are available are also available at the URL above.
Created attachment 84241 [details, diff] libsdl-1.2.9-fullscreen-toggle.patch
i take it you didnt write this patch huh this needs to go through the libsdl mailing list ...
not gonna happen.
hmm ? this patch has been posted to the libsdl list already ?
it may have, but i see they're ripping out the ToggleFullScreen functions in favor of something more portable in 1.3 anyways. plus, after reading through the sources i realized how totally ugly a hack this is and i'm kind of embarrassed i proposed it in the first place.
*** Bug 165951 has been marked as a duplicate of this bug. ***