mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
core: Move window enter/leave to display
The following commits will make it possible to pass a NULL window to display_handle_window_enter/leave to represent the cursor entering the desktop. This means it can't be a method of the window class anymore. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3258>
This commit is contained in:

committed by
Marge Bot

parent
c73e178a2d
commit
5a33b0075a
@ -713,9 +713,10 @@ meta_wayland_pointer_update (MetaWaylandPointer *pointer,
|
||||
graphene_point_t pos;
|
||||
|
||||
clutter_event_get_coords (event, &pos.x, &pos.y);
|
||||
meta_window_handle_enter (focus_window,
|
||||
clutter_event_get_time (event),
|
||||
pos.x, pos.y);
|
||||
meta_display_handle_window_enter (focus_window->display,
|
||||
focus_window,
|
||||
clutter_event_get_time (event),
|
||||
pos.x, pos.y);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user