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:
Carlos Garnacho
2011-07-04 20:23:33 +02:00
parent 1dd50cf006
commit 972a9d231f
3 changed files with 41 additions and 24 deletions

View File

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