mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
wayland: Only repick pointer on crossing events
These are the only situations where it makes sense to determine a new focus surface. Suggested-by: Jonas Dreßler <verdre@v0yd.nl> Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1654>
This commit is contained in:
parent
ce6b91bb64
commit
ad3f2b0b86
@ -611,7 +611,9 @@ void
|
|||||||
meta_wayland_pointer_update (MetaWaylandPointer *pointer,
|
meta_wayland_pointer_update (MetaWaylandPointer *pointer,
|
||||||
const ClutterEvent *event)
|
const ClutterEvent *event)
|
||||||
{
|
{
|
||||||
repick_for_event (pointer, event);
|
if (event->type == CLUTTER_ENTER ||
|
||||||
|
event->type == CLUTTER_LEAVE)
|
||||||
|
repick_for_event (pointer, event);
|
||||||
|
|
||||||
if (event->type == CLUTTER_MOTION ||
|
if (event->type == CLUTTER_MOTION ||
|
||||||
event->type == CLUTTER_BUTTON_PRESS ||
|
event->type == CLUTTER_BUTTON_PRESS ||
|
||||||
|
Loading…
Reference in New Issue
Block a user