Fullscreen mode always uses primary monitor

Bug #1791443 reported by Benedikt Straub
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
Medium
Unassigned

Bug Description

On a multiple monitor setup, Widelands always uses the primary monitor in fullscreen mode. It should be possible to select which monitor to play on in the options, ideally with an option to use all of them.

Tags: graphics ui
Revision history for this message
GunChleoc (gunchleoc) wrote :

I don't have a multi-monitor setup, but since we don't have any code to handle this, I'm setting the bug to confirmed.

tags: added: graphics ui
Changed in widelands:
milestone: none → build21-rc1
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
kaputtnik (franku) wrote :

I have a multimonitor setup and my display manager/window manager have always trouble with it :-D

The problem here is that it is a problem of window/display manager configuration in conjunction with the graphics adapter/driver, not a problem of a single program.

> ideally with an option to use all of them.

This depends also to the window manager and graphics driver, not to a program. Example: https://www.facebook.com/photo.php?fbid=1386381771377233&set=o.326816027402782&type=3&theater

What i want to say: There are so many possibilities, also depending on the operating system and the graphics driver, that it will be impossible to achieve a solution for widelands to this bug.

I would vote to mark this bug as invalid or won't fix.

Revision history for this message
Benedikt Straub (nordfriese) wrote :

I don´t think it only depends on the graphic driver and window manager. The default behavior on my system is that a fullscreen window is placed on the monitor it was located on before maximizing. Widelands already has a different behavior, so I´d take a wild guess that the SDL can have some influence here.
Other programs have other handling methods. For example, OpenTTD allows me to choose a resolution equal to the combined size of both monitors, and when entering fullscreen mode at that res, the game uses both monitors. That´s what I would love to have for Widelands.
I don´t know the SDL very well, but it might be worth to check whether it allows to implement such a behavior.

Revision history for this message
GunChleoc (gunchleoc) wrote :

SDL does have some functions for listing the monitors, so we should be able to take it from there and at least improve the situation - staying on the same monitor while switching the mode would be good.

Code snippet for iterating through the available monitors:

https://wiki.libsdl.org/SDL_GetCurrentDisplayMode

Revision history for this message
GunChleoc (gunchleoc) wrote :
Changed in widelands:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.