mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
screen: Refactor update_cursor a bit
This commit is contained in:
parent
be60e4f6e7
commit
565883dadb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user