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 771345 - wayland: A couple of xwayland pointer warp related fixes
wayland: A couple of xwayland pointer warp related fixes
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: wayland
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2016-09-13 07:34 UTC by Jonas Ådahl
Modified: 2016-09-15 02:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wayland/pointer-constraints: Move window-unmanaging check (2.23 KB, patch)
2016-09-13 07:34 UTC, Jonas Ådahl
committed Details | Review
wayland/pointer-constraints: Maybe remove when pointer focus changes (1.61 KB, patch)
2016-09-13 07:35 UTC, Jonas Ådahl
committed Details | Review

Description Jonas Ådahl 2016-09-13 07:34:53 UTC
One of the patches is just a minor refactor.

The other avoids a potential crash when destroying a constraint ends up trying
to enable itself.
Comment 1 Jonas Ådahl 2016-09-13 07:34:57 UTC
Created attachment 335418 [details] [review]
wayland/pointer-constraints: Move window-unmanaging check

We should never enable a pointer constraint for an unmanaging window.
Comment 2 Jonas Ådahl 2016-09-13 07:35:02 UTC
Created attachment 335419 [details] [review]
wayland/pointer-constraints: Maybe remove when pointer focus changes

Also maybe remove a constraint when the pointer focus changes. This is
needed because when Xwayland has a constraint focus may change, the
constraint object will not receive a 'appears-focused' event on its
window since it never changed.

This happens for example when an override-redirect window (which never
appears focused) holds the constraint, and alt-tab happens. In this case
focus changes, but from the constraint's point of view, none of the
windows it knows about changed its focus appearance.
Comment 3 Carlos Garnacho 2016-09-14 09:18:19 UTC
Comment on attachment 335418 [details] [review]
wayland/pointer-constraints: Move window-unmanaging check

lgtm
Comment 4 Carlos Garnacho 2016-09-14 09:22:42 UTC
Comment on attachment 335419 [details] [review]
wayland/pointer-constraints: Maybe remove when pointer focus changes

Nice catch.
Comment 5 Jonas Ådahl 2016-09-15 02:33:36 UTC
Attachment 335418 [details] pushed as 32276cf - wayland/pointer-constraints: Move window-unmanaging check
Attachment 335419 [details] pushed as e1516e4 - wayland/pointer-constraints: Maybe remove when pointer focus changes