Comment 6 for bug 14044

Revision history for this message
Laurie Bradshaw (lauriebradshaw) wrote :

Fullscreen when screens > 1 shouldn't require disabling a screen (or grabbing the mouse by default, so despite having got fullscreen on one screen, the mouse can't be moved outside the window), attached patch for libsdl1.2-debian_1.2.11 makes the existing xinerama workaround useable so you can choose the head to use for fullscreen (SDL_VIDEO_FULLSCREEN_HEAD=<N>), and disables grabbing the mouse by default (the large majority of games that use mouse grabbing, ie. to make scrolling on the screen edge easier, already grab the mouse appropriately (release when paused for example) to handle windowed mode - and if they don't, it's usually a trivial patch).

Main limitation of this patch is lack of support for changing resolution (programatically finding a suitable vidmode to change one of n monitors to a specific resolution without changing the rest is a nightmare, and as I have LCDs, I don't really want to run them at anything other than native resolution anyway).

Only change to default behaviour (SDL_VIDEO_FULLSCREEN_HEAD not set) is no longer grabbing the mouse in fullscreen (shouldn't make any difference for fullscreen with one monitor, as the mouse effectively can't leave the window anyway).