x11/display: Don't go through meta_create_x_cursor

As the cursor would always be default in this case and we would
want to move that function to the x11 cursor renderer.See next commit

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3599>
This commit is contained in:
Bilal Elmoussaoui 2024-02-20 12:59:36 +01:00 committed by Marge Bot
parent ea74414b2e
commit 899b4aad37

View File

@ -1671,10 +1671,9 @@ static void
meta_x11_display_reload_cursor (MetaX11Display *x11_display)
{
Cursor xcursor;
MetaCursor cursor = x11_display->display->current_cursor;
/* Set a cursor for X11 applications that don't specify their own */
xcursor = meta_create_x_cursor (x11_display->xdisplay, cursor);
xcursor = XcursorLibraryLoadCursor (x11_display->xdisplay,
meta_cursor_get_name (META_CURSOR_DEFAULT));
XDefineCursor (x11_display->xdisplay, x11_display->xroot, xcursor);
XFlush (x11_display->xdisplay);