screen: Refactor update_cursor a bit

This commit is contained in:
Jasper St. Pierre 2014-03-31 17:21:04 -04:00
parent be60e4f6e7
commit 565883dadb

View File

@ -1381,6 +1381,12 @@ update_focus_mode (MetaScreen *screen)
/* nothing to do anymore */ ;
}
void
meta_screen_update_cursor (MetaScreen *screen)
{
meta_cursor_tracker_set_root_cursor (screen->cursor_tracker, screen->current_cursor);
}
void
meta_screen_set_cursor (MetaScreen *screen,
MetaCursor cursor)
@ -1389,14 +1395,7 @@ meta_screen_set_cursor (MetaScreen *screen,
return;
screen->current_cursor = cursor;
meta_cursor_tracker_set_root_cursor (screen->cursor_tracker, cursor);
}
void
meta_screen_update_cursor (MetaScreen *screen)
{
meta_cursor_tracker_set_root_cursor (screen->cursor_tracker,
screen->current_cursor);
meta_screen_update_cursor (screen);
}
static gboolean