minetest / minetest

Luanti (formerly Minetest) is an open source voxel game-creation platform with easy modding and game creation
https://www.minetest.net/
Other
10.82k stars 2.03k forks source link

Fullscreen mode breaks multi-head display settings #5484

Closed VanessaE closed 7 years ago

VanessaE commented 7 years ago

Minetest at commit fbc1432fe8e821f58e97a5f35340efb2f46f93e4 (plus the "undersampling" patch), under Debian 'sid'.

Going into full screen forces all of my displays to "mirrored" mode (all show the same content), and when exiting from the game, they're all left stuck in that mode until I reset them via XFCE's display settings.

Minetest should either fullscreen just the one screen it's on and leave the others alone, or maximize itself across all of them (some users will want a way to configure which ones to use, and in what layout, if this were the case), and in any case restore the monitor layout back to normal on exit.

At the least, Chrome web browser has no problem going in/out of full screen one monitor at a time.

sfan5 commented 7 years ago

related: #4921

rubenwardy commented 7 years ago

We should use a fake fullscreen rather than a real one. This is not a bug in Minetest, but simply a fact of how the fullscreen system works.

Until then, use alt+f11

VanessaE commented 7 years ago

Alt-F11 works perfectly; is there any reason "fullscreen" doesn't do the same thing then?

rubenwardy commented 7 years ago

Alt-F11 works perfectly; is there any reason "fullscreen" doesn't do the same thing then?

It's because we are setting the fullscreen property of the render window to true (using irrlicht), rather than setting the window to borderless fullscreen. Note it's not a Irrlicht bug either, just how fullscreen mode on a window works (due to compatibility reasons)

celeron55 commented 7 years ago

I'd like to note that the lack of support for fake fullscreen in Irrlicht can be considered to be an Irrlicht bug. We could workaround it by using the native window handles somehow probably?

rubenwardy commented 7 years ago

4921