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 638898 - XDND: Fix overview triggering for fast movement
XDND: Fix overview triggering for fast movement
Status: RESOLVED DUPLICATE of bug 663661
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Florian Müllner
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-01-07 11:04 UTC by drago01
Modified: 2013-03-03 22:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
XDND: Fix overview triggering for fast movement (993 bytes, patch)
2011-01-07 11:04 UTC, drago01
needs-work Details | Review
XDND: Fix overview triggering for fast movement (3.59 KB, patch)
2011-01-07 20:29 UTC, drago01
reviewed Details | Review

Description drago01 2011-01-07 11:04:08 UTC
Quote from https://bugzilla.gnome.org/show_bug.cgi?id=601731#c57

> The removal of the "toggle" behavior of the hot
> corner has improved the reliability when triggering the overview a lot -
> strangely, only in the case of being "too slow": if I leave the button while
> the overview transition is still ongoing, I'm kicked out of the overview. No
> obvious idea what's triggering this - would be cool if you manage to track it
> down, otherwise I'm OK with handling it in a new bug after landing this.

This seems to be caused by leaving the overview while the animation is still ongoing.
Comment 1 drago01 2011-01-07 11:04:28 UTC
Created attachment 177739 [details] [review]
XDND: Fix overview triggering for fast movement

Don't exit when the over animation is still ongoing.
Comment 2 drago01 2011-01-07 19:44:07 UTC
Review of attachment 177739 [details] [review]:

OK seems like this does not handle the case where the user drops while the overview animation is ongoing.
Comment 3 drago01 2011-01-07 20:29:47 UTC
Created attachment 177778 [details] [review]
XDND: Fix overview triggering for fast movement

Don't exit when the over animation is still ongoing, unless
the user really canceled the drag.
Comment 4 Florian Müllner 2012-02-15 19:23:21 UTC
Review of attachment 177778 [details] [review]:

The approach works, but is not really nice - the expected behavior of drag-begin/drag-end would be that each signal is emitted exactly once per drag-operation. Unfortunately that is not how xdnd works, so we get intermediate events when "crossing" into the overview; still, it would be a lot nicer to detect the "wrong" events in xdnd and not emit the 'drag-begin'/'drag-end' signals in that case. If that approach is too hard, the workaround in this patch is okay-ish though ...

::: js/ui/overview.js
@@ +207,3 @@
+            this._xdndDeferredLeaveId = 0;
+        }
+        else

Messed up indentation
Comment 5 drago01 2013-03-03 22:35:05 UTC
This is going to be fixed once Jasper's barrier work lands.

*** This bug has been marked as a duplicate of bug 663661 ***