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 784879 - Unpredictable actions from scrollbar drag on non-maximized window
Unpredictable actions from scrollbar drag on non-maximized window
Status: RESOLVED DUPLICATE of bug 785347
Product: gtk+
Classification: Platform
Component: Backend: Wayland
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-07-12 21:56 UTC by Christian Hergert
Modified: 2017-12-01 07:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Hergert 2017-07-12 21:56:34 UTC
Say you have a non-maximized window, such as epiphany or nautilus. Begin dragging the scrollbar, but let your mouse move outside the direct child of the window while dragging (happens frequently for me with ThinkPad touchpoint).

When the pointer falls outside of the shadow area of the window, events stop being delivered to the target window and the scroll stops.

Furthermore, if you have moved your mouse over an area of another background window, releasing the pointer will be synthesized into a GtkButton::clicked event if it has fallen over a button.

I've only tested on Wayland, but I'm pretty sure the event delivery model in X would continue delivering events to the scrollbar while it holds a grab.
Comment 1 Matthias Clasen 2017-07-13 21:37:26 UTC
this bug is basically complaining that wayland has no grabs.
Comment 2 Olivier Fourdan 2017-11-30 14:05:35 UTC
Humm, works just fine here.

Mouse button press on the scrollbar, move pointer outside the surface while keeping the button depressed, move pointer up and down and the scrollbar follows even when the pointer is outside the surface.

I tried with gedit, nautilus and epiphany...
Comment 3 Christian Hergert 2017-11-30 22:29:18 UTC
(In reply to Olivier Fourdan from comment #2)
> Humm, works just fine here.

Didn't Carlos implement grabs since this was reported?
Comment 4 Olivier Fourdan 2017-12-01 07:50:42 UTC
(In reply to Christian Hergert from comment #3)
> Didn't Carlos implement grabs since this was reported?

Wayland has no support for explicit grab (not to be confused with the shortcuts inhibitor protocol) and implicit grabs have always been there, at least as far as my memory serves :)

If anything, the fix for this particular issue is actually in mutter and is most likely commit 5db48fac:

    wayland: Update button state on motion/button events
    
    More specifically, avoid crossing events, since clutter does not set
    modifier/button state on those. Fixes implicit grabs being broken when
    the pointer moves past the surface boundaries.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=785347

I think it is safe to mark this bug as a duplicate of bug 785347

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