mirror of
https://github.com/brl/mutter.git
synced 2025-08-09 18:04:44 +00:00
screen: Use meta_device_pointer_set_window_cursor() for startup sequence.
At the moment feedback is only provided for the Virtual Core Pointer
This commit is contained in:
@@ -4273,22 +4273,29 @@ meta_display_set_cursor_theme (const char *theme,
|
||||
{
|
||||
#ifdef HAVE_XCURSOR
|
||||
GSList *tmp;
|
||||
|
||||
GList *devices, *d;
|
||||
MetaDisplay *display = meta_get_display ();
|
||||
|
||||
XcursorSetTheme (display->xdisplay, theme);
|
||||
XcursorSetDefaultSize (display->xdisplay, size);
|
||||
|
||||
devices = meta_device_map_list_devices (display->device_map);
|
||||
tmp = display->screens;
|
||||
|
||||
while (tmp != NULL)
|
||||
{
|
||||
MetaScreen *screen = tmp->data;
|
||||
|
||||
meta_screen_update_cursor (screen);
|
||||
|
||||
for (d = devices; d; d = d->next)
|
||||
{
|
||||
if (META_IS_DEVICE_POINTER (d->data))
|
||||
meta_screen_update_cursor (screen, d->data);
|
||||
}
|
||||
|
||||
tmp = tmp->next;
|
||||
}
|
||||
|
||||
g_list_free (devices);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user