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 664625 - the "cut" in the workspace pager is not working well
the "cut" in the workspace pager is not working well
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-11-23 10:53 UTC by Stefano Facchini
Modified: 2012-03-19 22:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fixes for the drop placeholder (3.97 KB, patch)
2011-11-23 10:53 UTC, Stefano Facchini
none Details | Review
placeholder fixes (3.66 KB, patch)
2011-11-23 15:20 UTC, Stefano Facchini
none Details | Review
placeholder fixes (3.54 KB, patch)
2011-11-24 09:54 UTC, Stefano Facchini
none Details | Review
workspaceThumbnail: use the correct coordinates when handling the workspace cut (3.87 KB, patch)
2011-12-05 11:04 UTC, Stefano Facchini
needs-work Details | Review

Description Stefano Facchini 2011-11-23 10:53:15 UTC
*) drag a window to the lower edge of a thumbnail, so that the "cut" is triggered, but don't go over the placeholder. Drop the window. It should appear in a new workspace, instead it is moved to the workspace under the pointer.

*) drag a window to the upper edge ot a thumbnail. The "cut" is not triggered

*) the pointer cursor is not updated correctly when dragging a window over thumbnails
Comment 1 Stefano Facchini 2011-11-23 10:53:41 UTC
Created attachment 201984 [details] [review]
fixes for the drop placeholder
Comment 2 Jasper St. Pierre (not reading bugmail) 2011-11-23 15:14:39 UTC
This patch includes command line color information. You need to upload a patch created by 'git format-patch'.
Comment 3 Stefano Facchini 2011-11-23 15:20:43 UTC
Created attachment 202002 [details] [review]
placeholder fixes

ops.. maybe "git config color.ui always" is not a good idea :)
Comment 4 Stefano Facchini 2011-11-24 09:54:02 UTC
Created attachment 202047 [details] [review]
placeholder fixes

Updated patch after master has been ported to Lang.Class framework
Comment 5 Stefano Facchini 2011-12-05 11:04:20 UTC
Created attachment 202822 [details] [review]
workspaceThumbnail: use the correct coordinates when handling the workspace cut

The coordinates passed to the handleDragOver function are relative to
the actor, so do not treat them as unscaled coordinates
Comment 6 Owen Taylor 2012-02-06 19:24:02 UTC
Review of attachment 202822 [details] [review]:

Marking needs-work on the unconfirmed suspicion that there's a better way to handle it - see below

::: js/ui/workspaceThumbnail.js
@@ +436,2 @@
         // Bubble up if we're in the "workspace cut".
+        let [HScale, VScale] = this.actor.get_scale();

as a style point, this is hScale, vScale

@@ +447,3 @@
+        // of removing the drop placeholder. The return value is ignored.
+        if (source.realWindow && !this._isMyWindow(source.realWindow)) {
+            this._thumbnailsBox.handleDragOver(source, actor, targX, targY, time);

This is _really_ ugly. Can we move the handling that we need from Thumbnails.handleDragOver to ThumbnailsBox.onDragMotion? If we need handling that overrides the heirarchy of drop sites, that seems like the better way to do it.
Comment 7 Stefano Facchini 2012-03-19 22:30:10 UTC
Fixed along with bug 643319 by commit 369c1b0