GNOME Bugzilla – Bug 712309
Turning off a second secondary monitor causes the primary to switch to the other secondary
Last modified: 2021-06-09 16:07:25 UTC
Created attachment 259815 [details] initial layout I have the current layout: http://ryanlerch.org/multimonitor/initiallayout.png But, when i turn the Cintiq off in gnome-control-center, the primary / secondary designations on the remaining displays are switched, so i end up with this layout: http://ryanlerch.org/multimonitor/layoutafter.png Expected results is that my existing monitors remain in the configuration that i previously set. Note that the positioning of the monitors remain the same, and is correct. it is just the designation of which monitors are primary / secondary
I vote for this code not working when there's more than one other screen. The screen we're turning off wasn't a primary screen, so primary is FALSE. 2269 else if (outputs[i] != priv->current_output)• 2270 {• 2271 /* ensure no other outputs are primary if this output is now• 2272 * primary, or find another output to set as primary if this• 2273 * output is no longer primary */• 2274 • 2275 gnome_rr_output_info_set_primary (outputs[i], !primary);• And here, we're looping and trying to set screen 1 as primary, unset 2 as the primary. 2276 if (!was_primary)• 2277 break;• 2278 }• 2279 }• I don't have hardware that can handle 2 external outputs though, but the code is clearly wrong.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new bug report at https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/ Thank you for your understanding and your help.