gnome-shell/js/ui
Ray Strode 12e3921f81 messageTray: only set stage input mode when necessary
The message tray focus grabbing code sets the stage input
mode to Shell.StageInputMode.FOCUSED when the overview is
not visible. This ensures the stage window's input
region gets reshaped to include the notification chrome,
and so that input events get delivered appropriately to
the notification that grabbed focus.

The message tray code never tries to restore the stage input
mode later. Instead, the code relies on the stage input
mode (and input region) getting reset to
shell.StageInputMode.NORMAL automatically when focus moves
back from the shell chrome to a window in the user's session.

It's not really correct to set the stage input mode based
on the overview's visibility, though. At the login screen,
even though no overview is visible, the stage input mode is
Shell.StageInputMode.FULLSCREEN which is sufficient
for the notification's needs,  Furthermore,
Shell.StageInputMode.FOCUSED is insufficient for the login
dialog's needs since the login dialog isn't considered
part of the shell's chrome and won't get included in the
stage input region.

This commit changes the message tray code to only set the
stage input mode if the current stage input mode isn't good enough,
rather than assuming the input mode isn't good enough just because
the overview is hidden.

https://bugzilla.gnome.org/show_bug.cgi?id=660919
2011-10-17 13:24:12 -04:00
..
status *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
altTab.js altTab: fix app ordering in certain edge cases 2011-10-17 12:54:03 -04:00
appDisplay.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
appFavorites.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
automountManager.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
autorunManager.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
boxpointer.js popup-menu: Allow adjusting where in the source the arrow points to 2011-10-13 15:03:32 +02:00
calendar.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
contactDisplay.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
ctrlAltTab.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
dash.js dash: Add minor optimization to _adjustIconSize() 2011-10-17 16:07:52 +02:00
dateMenu.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
dnd.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
docDisplay.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
endSessionDialog.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
environment.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
extensionSystem.js extensionSystem: Load user extensions after system ones 2011-10-16 14:54:17 -04:00
iconGrid.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
keyboard.js keyboard: fix the keyboard hiding when an extended key is selected 2011-10-13 16:12:16 -04:00
layout.js layoutManager: Ignore 1px overlap in _isAboveOrBelowPrimary() 2011-10-11 16:20:12 +02:00
lightbox.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
link.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
lookingGlass.js Add context menus to some entries 2011-10-17 15:29:32 +02:00
magnifier.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
magnifierDBus.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
main.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
messageTray.js messageTray: only set stage input mode when necessary 2011-10-17 13:24:12 -04:00
modalDialog.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
networkAgent.js Add context menus to some entries 2011-10-17 15:29:32 +02:00
notificationDaemon.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
overview.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
panel.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
panelMenu.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
placeDisplay.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
polkitAuthenticationAgent.js Add context menus to some entries 2011-10-17 15:29:32 +02:00
popupMenu.js popup-menu: Allow adjusting where in the source the arrow points to 2011-10-13 15:03:32 +02:00
runDialog.js Add context menus to some entries 2011-10-17 15:29:32 +02:00
scripting.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
search.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
searchDisplay.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
shellDBus.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
shellEntry.js shell-entry: Add API to support entry context menus 2011-10-17 15:29:32 +02:00
shellMountOperation.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
statusIconDispatcher.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
telepathyClient.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
tweener.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
userMenu.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
viewSelector.js Add context menus to some entries 2011-10-17 15:29:32 +02:00
windowAttentionHandler.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
windowManager.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
workspace.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
workspacesView.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
workspaceSwitcherPopup.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
workspaceThumbnail.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
xdndHandler.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00