summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-03-31 17:21:04 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2014-03-31 18:27:19 -0400
commit565883dadb66b3fabc470dc8771f604e77ad07ba (patch)
tree5b31b5d782c2566c7250a3909267e3a5d06aa823
parentbe60e4f6e76574fe1023b3d18b0b0fd2c62586ac (diff)
downloadmutter-565883dadb66b3fabc470dc8771f604e77ad07ba.tar.gz
screen: Refactor update_cursor a bit
-rw-r--r--src/core/screen.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/core/screen.c b/src/core/screen.c
index 26354a60c..283544549 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -1382,6 +1382,12 @@ update_focus_mode (MetaScreen *screen)
}
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