gnome-shell/js/ui
Jonas Ådahl db43c45b12 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-06 20:31:14 -04:00
..
components autorunManager: Avoid access to non-existent array element 2017-09-19 20:07:21 +02:00
status system: Split out system actions to its own module 2017-08-22 12:09:04 +02:00
accessDialog.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
altTab.js Make key-above-tab in switcher more consistent 2017-09-19 20:09:20 +02:00
animation.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
appDisplay.js appDisplay: Include system actions in search results 2017-08-22 13:02:58 +02:00
appFavorites.js appFavorites: Add Empathy to rename list 2017-08-30 21:16:16 -05:00
audioDeviceSelection.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
background.js background: use of CHANGES_DONE_HINT events to avoid reloads 2017-07-31 16:17:35 +01:00
backgroundMenu.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
boxpointer.js boxpointer: If available, use source actor for constraining 2017-09-04 16:28:58 +08:00
calendar.js calendar: Rebuild the calendar when the time zone changes 2017-10-04 16:44:07 +02:00
checkBox.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
closeDialog.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
ctrlAltTab.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
dash.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
dateMenu.js weather: Mark conditions as significant 2017-10-04 18:12:26 +02:00
dialog.js dialog: Fix setting buttons as initial key focus 2017-10-04 18:12:27 +02:00
dnd.js dnd: Prevent dividing by zero when calculating the scale factor 2017-09-22 15:50:07 +01:00
edgeDragAction.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
endSessionDialog.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
environment.js environment: Remove stray semicolon 2017-07-19 01:45:12 +02:00
extensionDownloader.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
extensionSystem.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
focusCaretTracker.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
grabHelper.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
ibusCandidatePopup.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
iconGrid.js iconGrid: Cancel animations on unmap 2017-07-19 10:49:54 +02:00
inhibitShortcutsDialog.js inhibitShortcuts: Whitelist OS components 2017-08-22 12:09:04 +02:00
keyboard.js keyboard: Only rebuild keyboard actor on keyboard type changes 2017-07-23 16:06:04 +02:00
layout.js layout: Unset primary and bottom monitor when headless 2017-10-06 20:31:14 -04:00
lightbox.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
lookingGlass.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
magnifier.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
magnifierDBus.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
main.js dateMenu: Use icon for message indicator 2017-09-12 17:32:51 +02:00
messageList.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
messageTray.js messageTray: Check monitor's existence before trying to update the state 2017-09-28 16:32:00 +01:00
modalDialog.js dialog: Fix setting buttons as initial key focus 2017-10-04 18:12:27 +02:00
mpris.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
notificationDaemon.js notificationDaemon: Guard against invalid D-Bus object paths 2017-09-25 15:57:20 +01:00
osdMonitorLabeler.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
osdWindow.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
overview.js ui: Improve handling being headless 2017-10-04 11:50:21 -04:00
overviewControls.js overview: Don't expand workspace thumbnails by default 2017-08-10 20:16:06 +02:00
padOsd.js padOsd: Add one to the >1 rings 2017-08-03 22:06:33 +02:00
panel.js popupMenu: Close menus on session mode changes 2017-10-04 18:12:27 +02:00
panelMenu.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
pointerWatcher.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
popupMenu.js popupMenu: Close menus on session mode changes 2017-10-04 18:12:27 +02:00
remoteMenu.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
remoteSearch.js remoteSearch: Fix remote search providers 2017-09-21 16:53:32 +02:00
runDialog.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
screencast.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
screenShield.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
screenshot.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
scripting.js shell-perf-helper: Add an option for continual redraws 2014-07-16 10:33:59 -04:00
search.js viewSelector: Open context for highlighted search result 2017-08-17 16:58:17 +02:00
sessionMode.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
shellDBus.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
shellEntry.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
shellMountOperation.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
slider.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
switcherPopup.js switcherPopup: Add support for modifier-less keybinding navigation 2017-08-22 10:50:56 +02:00
switchMonitor.js windowManager: Add a switcher for mutter's switch-monitor keybinding 2017-08-22 10:50:56 +02:00
tweener.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
unlockDialog.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
userWidget.js Resize the user's avatar when scaling factor changes 2017-08-11 12:47:45 +02:00
viewSelector.js viewSelector: Open context for highlighted search result 2017-08-17 16:58:17 +02:00
windowAttentionHandler.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
windowManager.js windowManager: Disable OSK gesture on lock screen 2017-09-29 15:59:10 +02:00
windowMenu.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
workspace.js workspace: Focus clone when highlighting 2017-10-04 18:12:27 +02:00
workspacesView.js Define externally accessible contants with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00
workspaceSwitcherPopup.js Fix some more undefined property warnings 2017-09-19 20:07:21 +02:00
workspaceThumbnail.js ui: Improve handling being headless 2017-10-04 11:50:21 -04:00
xdndHandler.js Define classes with 'var' instead of 'const' 2017-07-18 21:52:06 +02:00