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:
Sebastian Wick
2023-09-13 16:19:38 +02:00
committed by Marge Bot
parent c73e178a2d
commit 5a33b0075a
6 changed files with 172 additions and 167 deletions

View File

@ -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);
}
}
}