Commit be3f0dad authored by Carlos Garnacho's avatar Carlos Garnacho
Browse files

wayland: Unset button modifiers on pointer enter

Due to implicit grabs, we basically can guarantee that the pointer
won't have any buttons pressed at the time of wl_pointer.enter.
Seems like a good place to unset any button modifiers that might
have been left stale by compositor grabs.
parent 1045dda0
......@@ -1072,6 +1072,8 @@ pointer_handle_enter (void *data,
device->pointer_focus = wl_surface_get_user_data(surface);
device->button_modifiers = 0;
device->surface_x = wl_fixed_to_double (sx);
device->surface_y = wl_fixed_to_double (sy);
device->enter_serial = serial;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment