gnome-shell/js/ui
Sebastian Keller a91b6439ba overview: Validate transitions of the shown state
There have been several bugs in the past that caused invalid transitions
of the `shown` state, such as going from `showing` to `showing`. These
cause consecutive emissions of the `showing` signal, which can confuse
other classes such as the search controller which connects to the stage
`key-press-event` on showing and disconnects again on `hiding`. Having
two consecutive `showing` signals will cause it to connect twice, and
only disconnect once when hiding the overview again. This will lead to
key presses getting repeated in the search until the session is
restarted. Because there is no obvious connection to how and when this
issue got triggered, this now adds some validation code that only allows
valid transitions and throws an error otherwise so we get a backtrace of
the code actually causing the problem.

This does not fix the issue(s) causing the invalid state transitions, it
only adds a way of tracking them down.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4651
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2514>
2023-02-12 16:31:04 +00:00
..
components general: Rename "application" to "app" 2023-02-07 14:46:28 +00:00
status quickSettings: Add background apps menu 2023-02-12 16:16:36 +00:00
accessDialog.js accessDialog: Don't add an empty body 2023-01-17 13:51:54 +00:00
altTab.js
animation.js
appDisplay.js general: Rename "application" to "app" 2023-02-07 14:46:28 +00:00
appFavorites.js
appMenu.js
audioDeviceSelection.js
background.js
backgroundMenu.js backgroundMenu: Drop grab-op-begin signal connection 2023-01-30 12:19:22 +00:00
barLevel.js
boxpointer.js
calendar.js
checkBox.js
closeDialog.js general: Rename "application" to "app" 2023-02-07 14:46:28 +00:00
ctrlAltTab.js
dash.js general: Rename "application" to "app" 2023-02-07 14:46:28 +00:00
dateMenu.js
dialog.js
dnd.js
edgeDragAction.js edgeDragAction: Drop grab-op-begin signal connection 2023-01-30 12:19:22 +00:00
endSessionDialog.js
environment.js
extensionDownloader.js
extensionSystem.js
focusCaretTracker.js
grabHelper.js
ibusCandidatePopup.js
iconGrid.js appDisplay: Move findBestPageToAppend() behavior to IconGrid 2023-02-01 12:56:28 +00:00
inhibitShortcutsDialog.js general: Rename "application" to "app" 2023-02-07 14:46:28 +00:00
init.js
kbdA11yDialog.js
keyboard.js
layout.js layout: Add work-around for testing greeter UI in nested 2023-02-09 19:59:12 +01:00
lightbox.js
locatePointer.js
lookingGlass.js
magnifier.js
main.js general: Rename "application" to "app" 2023-02-07 14:46:28 +00:00
messageList.js
messageTray.js
modalDialog.js
mpris.js
notificationDaemon.js general: Rename "application" to "app" 2023-02-07 14:46:28 +00:00
osdMonitorLabeler.js
osdWindow.js
overview.js overview: Validate transitions of the shown state 2023-02-12 16:31:04 +00:00
overviewControls.js general: Rename "application" to "app" 2023-02-07 14:46:28 +00:00
padOsd.js general: Rename "application" to "app" 2023-02-07 14:46:28 +00:00
pageIndicators.js
panel.js quickSettings: Add background apps menu 2023-02-12 16:16:36 +00:00
panelMenu.js
pointerA11yTimeout.js
pointerWatcher.js
popupMenu.js
quickSettings.js quickSettings: Remove null checks 2023-02-12 16:16:36 +00:00
remoteSearch.js
ripples.js
runDialog.js
screenShield.js general: Rename "application" to "app" 2023-02-07 14:46:28 +00:00
screenshot.js
scripting.js
search.js
searchController.js
sessionMode.js
shellDBus.js general: Rename "application" to "app" 2023-02-07 14:46:28 +00:00
shellEntry.js
shellMountOperation.js shellMountOperation: Don't read unavailable desktop file 2023-02-02 19:33:10 +01:00
slider.js
swipeTracker.js swipeTracker: Drop grab-op-begin signal connection 2023-01-30 12:19:22 +00:00
switcherPopup.js
switchMonitor.js
unlockDialog.js lockscreen: Style cleanup for lock and login 2023-01-06 11:29:31 +00:00
userWidget.js
welcomeDialog.js
windowAttentionHandler.js
windowManager.js windowManager: Drop grab-op-begin signal connection 2023-01-30 12:19:22 +00:00
windowMenu.js panel,windowMenu: Update to meta_window_begin_grab_op() API change 2023-01-30 12:19:22 +00:00
windowPreview.js
workspace.js
workspaceAnimation.js
workspacesView.js workspacesView: Remove obsolete cleanup 2023-02-04 23:54:42 +00:00
workspaceSwitcherPopup.js
workspaceThumbnail.js
xdndHandler.js