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:
parent
ea74414b2e
commit
899b4aad37
@ -1671,10 +1671,9 @@ static void
|
|||||||
meta_x11_display_reload_cursor (MetaX11Display *x11_display)
|
meta_x11_display_reload_cursor (MetaX11Display *x11_display)
|
||||||
{
|
{
|
||||||
Cursor xcursor;
|
Cursor xcursor;
|
||||||
MetaCursor cursor = x11_display->display->current_cursor;
|
|
||||||
|
|
||||||
/* Set a cursor for X11 applications that don't specify their own */
|
/* 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);
|
XDefineCursor (x11_display->xdisplay, x11_display->xroot, xcursor);
|
||||||
XFlush (x11_display->xdisplay);
|
XFlush (x11_display->xdisplay);
|
||||||
|
Loading…
Reference in New Issue
Block a user