gnome-shell/js
Jonas Ådahl 5f8a511483 layout: Unset primary and bottom monitor when headless
We were handling being initially headless by only setting the primary
and bottom monitor if there was any primary monitor, then checking the
primary monitor reference before making calls assuming there was any
monitors.

What we didn't do was unset the primary and bottom monitor when going
headless, meaning that temporarly disconnecting a monitor while having
windows open caused an assert to be triggered due to various code paths
taking the path assuming there are valid monitors.

Unsetting both the primary and bottom monitor when going headless avoids
the code paths in the same way as they were avoided when starting
headless.

https://bugzilla.gnome.org/show_bug.cgi?id=788607
2017-10-07 00:38:16 -04:00
..
extensionPrefs Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
gdm gdmUtils: Define constants with 'var' 2017-08-10 20:16:06 +02:00
misc loginManager: Handle unset XDG_SESSION_ID more gracefully 2017-09-22 18:46:01 +02:00
perf Revert accidental commit "Test stuff" 2014-09-03 13:47:18 -04:00
portalHelper Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
ui layout: Unset primary and bottom monitor when headless 2017-10-07 00:38:16 -04:00
js-resources.gresource.xml system: Split out system actions to its own module 2017-08-22 12:09:04 +02:00
meson.build build: Support the meson build system 2017-07-20 00:20:54 +02:00