backends/x11: Avoid defining (and freeing!) nonexistent cursors
Such as "default" for legacy X11 themes. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3454 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3718>
This commit is contained in:
parent
6d8c93ba66
commit
847f015017
@ -108,11 +108,14 @@ meta_cursor_renderer_x11_update_cursor (MetaCursorRenderer *renderer,
|
||||
Cursor xcursor;
|
||||
|
||||
xcursor = create_x_cursor (xdisplay, cursor);
|
||||
XDefineCursor (xdisplay, xwindow, xcursor);
|
||||
XFlush (xdisplay);
|
||||
XFreeCursor (xdisplay, xcursor);
|
||||
if (xcursor)
|
||||
{
|
||||
XDefineCursor (xdisplay, xwindow, xcursor);
|
||||
XFlush (xdisplay);
|
||||
XFreeCursor (xdisplay, xcursor);
|
||||
|
||||
has_server_cursor = TRUE;
|
||||
has_server_cursor = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user