mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
wayland-pointer: fix condition for grabbing
It returns FALSE when button_count is not 0. But grabbing for move/resize is activated by clicking the button, so this condition disallows the wayland clients to be moved/resized. https://bugzilla.gnome.org/show_bug.cgi?id=731237
This commit is contained in:
parent
bb92054c86
commit
b2183dfda7
@ -813,7 +813,7 @@ meta_wayland_pointer_can_grab_surface (MetaWaylandPointer *pointer,
|
||||
MetaWaylandSurface *surface,
|
||||
uint32_t serial)
|
||||
{
|
||||
return (pointer->button_count == 0 &&
|
||||
return (pointer->button_count > 0 &&
|
||||
pointer->grab_serial == serial &&
|
||||
pointer->focus_surface == surface);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user