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 649632 - workspace: various fixes for window zooming
workspace: various fixes for window zooming
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-05-07 07:38 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2013-03-03 22:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
workspace: various fixes for window zooming (1.81 KB, patch)
2011-05-07 07:38 UTC, Jasper St. Pierre (not reading bugmail)
reviewed Details | Review
workspace: Use Main.uiGroup instead of global.stage (1.48 KB, patch)
2011-05-12 01:00 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
workspace: End zooming when starting a window drag (1010 bytes, patch)
2011-05-12 01:00 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2011-05-07 07:38:09 UTC
The Main.uiGroup thing has been bugging me for a little while, and while
trying to reproduce a crasher, I found this other bug, which pretty much
messes up your entire system because of the reparent.
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-05-07 07:38:12 UTC
Created attachment 187408 [details] [review]
workspace: various fixes for window zooming

Don't use global.stage directly, use Main.uiGroup instead.

When dragging a window, make sure to end the zoom if it exists, otherwise there
are some weird side effects.
Comment 2 Colin Walters 2011-05-11 19:05:48 UTC
Review of attachment 187408 [details] [review]:

These should be two separate patches.

Can you explain how to reproduce the first problem?

::: js/ui/workspace.js
@@ +298,3 @@
     _onDragBegin : function (draggable, time) {
+        if (this._zooming)
+            this._zoomEnd();

This one looks fine.
Comment 3 Jasper St. Pierre (not reading bugmail) 2011-05-11 19:09:31 UTC
Use the magnifier.
Comment 4 Jasper St. Pierre (not reading bugmail) 2011-05-12 01:00:26 UTC
Created attachment 187668 [details] [review]
workspace: Use Main.uiGroup instead of global.stage

The mouse-wheel zoom "easter egg" broke when using the magnifier
because it was using global.stage. Fix it to use Main.uiGroup instead.
Comment 5 Jasper St. Pierre (not reading bugmail) 2011-05-12 01:00:30 UTC
Created attachment 187669 [details] [review]
workspace: End zooming when starting a window drag

The mouse-wheel zooming "easter egg" breaks horribly when you
drag a window, due to ugly lightbox reparenting tricks it uses.

For now, just end any zoom before we drag the window around.
Comment 6 Colin Walters 2011-05-12 13:27:03 UTC
Review of attachment 187669 [details] [review]:

Looks good.
Comment 7 Colin Walters 2011-05-12 13:28:55 UTC
Review of attachment 187668 [details] [review]:

Looks good.
Comment 8 Jasper St. Pierre (not reading bugmail) 2011-05-12 15:05:43 UTC
Attachment 187668 [details] pushed as bc2b479 - workspace: Use Main.uiGroup instead of global.stage
Attachment 187669 [details] pushed as 6e6b1e6 - workspace: End zooming when starting a window drag
Comment 9 Owen Taylor 2011-05-25 00:14:34 UTC
The "End zooming when starting a window drag" ends up with the drag point possibly quite radically wrong. It's minor, but polish matters.
Comment 10 drago01 2013-03-03 22:42:39 UTC
Zooming has been removed.