After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679005 - WorkspaceSwitcherPopup: fix for dynamic workspace changes
WorkspaceSwitcherPopup: fix for dynamic workspace changes
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 680019 684075 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-06-27 19:16 UTC by Giovanni Campagna
Modified: 2012-09-28 06:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
WorkspaceSwitcherPopup: fix for dynamic workspace changes (7.91 KB, patch)
2012-06-27 19:16 UTC, Giovanni Campagna
committed Details | Review
WindowManager: ignore ctrl-alt-left/right (919 bytes, patch)
2012-06-27 20:09 UTC, Giovanni Campagna
committed Details | Review
Main: fix ctrl-alt-arrow in the overview (1.20 KB, patch)
2012-06-27 20:14 UTC, Giovanni Campagna
committed Details | Review

Description Giovanni Campagna 2012-06-27 19:16:21 UTC
Changing the number of workspaces while the popup was visible (which
happens when moving windows on the last non empty workspace) resulted
in a wrong layout. Fix that, by listening to workspace-added and
workspace-removed signals, and by always requesting an updated size
from the actor.
Comment 1 Giovanni Campagna 2012-06-27 19:16:25 UTC
Created attachment 217454 [details] [review]
WorkspaceSwitcherPopup: fix for dynamic workspace changes
Comment 2 Jasper St. Pierre (not reading bugmail) 2012-06-27 19:22:04 UTC
Review of attachment 217454 [details] [review]:

why are we destroying it instead of keeping it around?

::: js/ui/windowManager.js
@@ +589,3 @@
+        if (direction != Meta.MotionDirection.UP &&
+            direction != Meta.MotionDirection.DOWN)
+            return;

separate patch

@@ +596,3 @@
+            newWs = this.actionMoveWindow(window, direction);
+
+        if (!Main.overview.visible) {

???

::: js/ui/workspaceSwitcherPopup.js
@@ +125,1 @@
         let primary = Main.layoutManager.primaryMonitor;

Why do we have a Shell.GenericContainer here? If it's for centering, didn't we do a lot of refactoring so that CtrlAltTab/AltTab/ModalDialog all used the same code for centering too? Can't we use that?
Comment 3 Giovanni Campagna 2012-06-27 20:05:54 UTC
(In reply to comment #2)
> Review of attachment 217454 [details] [review]:
> 
> why are we destroying it instead of keeping it around?

Because it consumes resources and keeps two signals on global.screen, for a widget that is normally not shown.

> 
> @@ +596,3 @@
> +            newWs = this.actionMoveWindow(window, direction);
> +
> +        if (!Main.overview.visible) {
> 
> ???

Uh?
This check existed before, as ctrl-alt-arrow can be used from the overview.

> ::: js/ui/workspaceSwitcherPopup.js
> @@ +125,1 @@
>          let primary = Main.layoutManager.primaryMonitor;
> 
> Why do we have a Shell.GenericContainer here? If it's for centering, didn't we
> do a lot of refactoring so that CtrlAltTab/AltTab/ModalDialog all used the same
> code for centering too? Can't we use that?

I see no refactoring in master, each of CtrlAltTab, AltTab and ModalDialog has its own ShellGenericContainer that centers it.
Comment 4 Giovanni Campagna 2012-06-27 20:09:47 UTC
Created attachment 217457 [details] [review]
WindowManager: ignore ctrl-alt-left/right

Fixes a regression introduced in de72065a
Comment 5 Jasper St. Pierre (not reading bugmail) 2012-06-27 20:12:04 UTC
Review of attachment 217457 [details] [review]:

Sure.
Comment 6 Giovanni Campagna 2012-06-27 20:14:54 UTC
Created attachment 217458 [details] [review]
Main: fix ctrl-alt-arrow in the overview

Fixes a regression introduced in de72065, which changed the method names
but forgot to update this code path.
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-06-27 20:16:34 UTC
Review of attachment 217458 [details] [review]:

Sure.
Comment 8 Giovanni Campagna 2012-06-27 20:19:04 UTC
Attachment 217457 [details] pushed as c3d3d34 - WindowManager: ignore ctrl-alt-left/right
Attachment 217458 [details] pushed as 9561f77 - Main: fix ctrl-alt-arrow in the overview
Comment 9 Florian Müllner 2012-07-16 14:37:37 UTC
*** Bug 680019 has been marked as a duplicate of this bug. ***
Comment 10 Jasper St. Pierre (not reading bugmail) 2012-07-16 17:14:10 UTC
Review of attachment 217454 [details] [review]:

Sure.
Comment 11 Giovanni Campagna 2012-07-16 17:16:47 UTC
Attachment 217454 [details] pushed as f0e03b5 - WorkspaceSwitcherPopup: fix for dynamic workspace changes
Comment 12 Benjamin Berg 2012-09-28 06:43:06 UTC
*** Bug 684075 has been marked as a duplicate of this bug. ***