gnome-shell/js/ui
Jonas Dreßler 67b9386b4b workspacesView: Avoid setting invalid geometries on views
The fullGeometry and the actualGeometry of the WorkspacesDisplay are set
from the allocation of the overviews ControlsManager and the
WorkspacesDisplay, that means they're only valid after those actors got
their allocations during Clutters allocation cycle.

Since WorkspacesDisplay._updateWorkspacesViews() is already called while
showing/mapping the WorkspacesDisplay, that allocation cycle didn't
happen yet and we end up either setting the geometries of the views to
null (in case of the fullGeometry) or to something wrong (a 0-sized
allocation in case of the actualGeometry).

So avoid setting invalid geometries on the views by initializing both
the fullGeometry and the actualGeometry to null, and then only updating
the geometries of the views after they're set to a correct value.

Note that this means we won't correctly animate the overview the first
time we open it since the animation depends on the geometries being set,
but is being started from show(), which means no allocations have
happened yet. In practice this introduces no regression though since
before this change we simply used incorrect geometries (see the 0-sized
allocation mentioned above) on the initial opening and the animation
didn't work either.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1119
2020-06-14 17:15:01 +02:00
..
components polkitAgent: Reset the session request timeout when removing it 2020-04-17 16:59:38 +00:00
status power: Fix icon when discharging at 100% 2020-05-26 23:25:54 +02:00
accessDialog.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
altTab.js altTab: Set allocation before allocating children 2020-04-28 16:24:25 +00:00
animation.js animation: Set size through CSS 2020-04-06 14:37:35 -03:00
appDisplay.js appDisplay: Lower scroll timeout 2020-05-11 13:34:36 +02:00
appFavorites.js appFavorites: Add eog to rename list 2020-05-01 22:42:55 +00:00
audioDeviceSelection.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
background.js background: Remove noise texture 2020-02-10 22:30:52 +00:00
backgroundMenu.js
barLevel.js
boxpointer.js boxpointer: Call set_allocation before allocating child 2020-04-28 16:24:05 +00:00
calendar.js calendar: Fix initial do-not-disturb state 2020-05-18 17:02:13 +00:00
checkBox.js checkbox: Improve accessibility of check boxes for Orca users 2020-03-29 12:56:33 +00:00
closeDialog.js closeDialog: Remove transitions before resetting dialog 2020-03-23 15:27:47 +00:00
ctrlAltTab.js
dash.js Revert "js/ui: Use Clutter.OffscreenRedirect.ON_IDLE" 2020-02-26 11:54:54 +08:00
dateMenu.js dateMenu: Remove unused property 2020-05-18 23:39:55 +00:00
dialog.js closeDialog: Make dialog inactive while fading out 2020-02-21 08:11:57 +00:00
dnd.js dnd: Make DND translation-property-aware 2020-02-07 14:43:56 +00:00
edgeDragAction.js
endSessionDialog.js Revert "endSessionDialog: apply updates by default" 2020-04-29 19:51:05 +00:00
environment.js environment: Move g_dbus_connection_call() promisification 2020-04-03 02:03:18 +00:00
extensionDownloader.js extensionDownloader: Replace deprecated Soup.SessionAsync 2020-05-15 16:22:35 +00:00
extensionSystem.js extensionSystem: Prevent broken updates 2020-06-03 01:37:39 +02:00
focusCaretTracker.js
grabHelper.js grabHelper: Add (promised-based) grabAsync() 2019-12-20 15:41:32 +01:00
ibusCandidatePopup.js
iconGrid.js iconGrid: Create icon clones in a separate loop 2020-02-19 15:39:21 +00:00
inhibitShortcutsDialog.js inhibitShortcutsDialog: Adapt to new dialog design 2020-01-27 23:40:04 +01:00
kbdA11yDialog.js ui: Use ClutterSeat for keyboard/pointer a11y 2020-01-30 17:49:08 +00:00
keyboard.js keyboard: Add missing setter 2020-04-27 22:04:16 +00:00
layout.js layout: Use translation_y of 0 to hide keyboard 2020-03-28 20:45:32 +00:00
lightbox.js lightbox: Change vignette brightness to 0.5 2020-01-19 18:01:57 +01:00
locatePointer.js
lookingGlass.js js: Add missing chain-ups in vfuncs 2020-03-27 10:39:58 +01:00
magnifier.js magnifier: Use inhibit-unfocus API to keep wayland focus while hidden 2020-02-24 10:31:08 +00:00
magnifierDBus.js
main.js main: Unset the right prevFocus actor after the focus stack got shifted 2020-04-29 17:36:06 +00:00
messageList.js js: Add missing chain-ups in vfuncs 2020-03-27 10:39:58 +01:00
messageTray.js messageTray: Add missing property getter 2020-05-04 14:34:24 +00:00
modalDialog.js switcherPopup: Dismiss when a system modal dialog opens 2019-12-06 19:55:39 +01:00
mpris.js mpris: Prevent DBus race when creating media players 2020-05-13 18:00:55 +00:00
notificationDaemon.js notificationDaemon: Try harder to find a matching app 2020-06-02 23:33:48 +00:00
osdMonitorLabeler.js
osdWindow.js
overview.js Revert "js/ui: Use Clutter.OffscreenRedirect.ON_IDLE" 2020-02-26 11:54:54 +08:00
overviewControls.js overviewControls: Remove transitions before updating adjustment value 2020-04-28 10:14:16 +02:00
padOsd.js padOsd: Apply specific CSS to Button/Leader SVG classes 2020-05-29 20:26:57 +02:00
pageIndicators.js
panel.js panel: Center app icon 2020-05-07 13:10:26 +00:00
panelMenu.js
pointerA11yTimeout.js ui: Use ClutterSeat for keyboard/pointer a11y 2020-01-30 17:49:08 +00:00
pointerWatcher.js
popupMenu.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
remoteSearch.js remoteSearch: Fix typos in log messages 2020-03-23 13:40:39 -03:00
ripples.js
runDialog.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
screencast.js
screenShield.js screenShield: Wake up on deactivate() 2020-04-03 15:09:24 +00:00
screenshot.js screenshot: Properly clean up if PickColor() is cancelled 2020-05-29 10:46:13 +02:00
scripting.js perf-tool: Spawn perf-tool-helper from gnome-shell 2020-01-27 13:43:06 +00:00
search.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
sessionMode.js main: Get the theme resource name from sessionMode 2020-03-06 19:09:25 +00:00
shellDBus.js extensionSystem: Add method for opening extension prefs 2020-04-03 16:58:15 +02:00
shellEntry.js shellEntry: Restore natural-height-set instead of forcing it 2020-02-22 16:58:01 +00:00
shellMountOperation.js js: Do not set entries' ClutterText:editable property 2020-03-29 22:12:57 +02:00
slider.js js: Add missing chain-ups in vfuncs 2020-03-27 10:39:58 +01:00
swipeTracker.js js/ui: Subscribe touchpad gesture handlers to only touchpad events 2020-02-29 13:39:17 +00:00
switcherPopup.js switcherPopup: Use correct scroll-direction property 2020-02-26 22:46:51 +00:00
switchMonitor.js switchMonitor: Center align switcher icon's label 2020-01-02 13:03:08 +05:30
tweener.js
unlockDialog.js unlockDialog: Set Switch User Button via _updateUserSwitchVisibility 2020-06-10 16:14:31 +00:00
userWidget.js userWidget: Always set actor size inside update() 2020-02-18 22:10:00 +00:00
viewSelector.js js/ui: Subscribe touchpad gesture handlers to only touchpad events 2020-02-29 13:39:17 +00:00
windowAttentionHandler.js messageTray: Don't create notification policy on demand 2020-03-26 18:52:10 +00:00
windowManager.js windowManager: Allow xwayland startup to complete without systemd 2020-05-13 19:51:09 +02:00
windowMenu.js
workspace.js workspace: Fix chaining up 2020-04-03 15:47:01 +02:00
workspacesView.js workspacesView: Avoid setting invalid geometries on views 2020-06-14 17:15:01 +02:00
workspaceSwitcherPopup.js
workspaceThumbnail.js workspaceThumbnail: Sync indicator with WorkspacesDisplay 2020-01-08 23:07:08 +01:00
xdndHandler.js