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 3576

Summary: Fullscreen display cropped to desktop resolution
Product: SDL Reporter: Yann Dirson <ydirson>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.5   
Hardware: x86_64   
OS: Linux   

Description Yann Dirson 2017-01-31 22:12:17 UTC
Eg. to reproduce:

* setup a SDL2 game like nexuiz to use your best fullscreen resolution, and close it
* use xrandr to switch to a smaller resolution
* launch nexuiz again: you get your requested resolution, but the display is cropped at the smaller resolution, making the whole just unusable

(SDL1.2 apps like Battle for Wesnoth, OTOH, crash with an XF86VidModeSwitchToMode exception)

What happens is that SDL does not touch the Xrandr Screen Size.  While this is probably useful to avoid the desktop manager to shuffle icons, it has a bit downside for users willing eg. to use 4K only for gaming and not on the desktop.
Comment 1 Sam Lantinga 2017-08-11 19:52:33 UTC
True fullscreen (not fullscreen desktop) games should be setting the mode as the come into focus. Ryan, are we capping this to the desktop resolution on Linux?