wayland: Fix thinko checking for pointers with pressed buttons
These are bail out paths, so we should ignore pointers with no buttons pressed. Spotted by Jonas Ådahl. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3821>
This commit is contained in:
parent
fd1d8c778b
commit
6f2f4c5767
1 changed files with 4 additions and 4 deletions
|
@ -1109,10 +1109,10 @@ find_dnd_candidate_device (ClutterStage *stage,
|
||||||
|
|
||||||
if (!sequence)
|
if (!sequence)
|
||||||
{
|
{
|
||||||
if (modifiers &
|
if ((modifiers &
|
||||||
(CLUTTER_BUTTON1_MASK | CLUTTER_BUTTON2_MASK |
|
(CLUTTER_BUTTON1_MASK | CLUTTER_BUTTON2_MASK |
|
||||||
CLUTTER_BUTTON3_MASK | CLUTTER_BUTTON4_MASK |
|
CLUTTER_BUTTON3_MASK | CLUTTER_BUTTON4_MASK |
|
||||||
CLUTTER_BUTTON5_MASK))
|
CLUTTER_BUTTON5_MASK)) == 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue