diff --git a/src/backends/meta-backend.c b/src/backends/meta-backend.c index edabaa447..9083a4346 100644 --- a/src/backends/meta-backend.c +++ b/src/backends/meta-backend.c @@ -196,6 +196,8 @@ meta_backend_monitors_changed (MetaBackend *backend) priv->is_pointer_position_initialized = TRUE; } } + + meta_cursor_renderer_force_update (priv->cursor_renderer); } void diff --git a/src/core/screen.c b/src/core/screen.c index be4394349..c14bba0cf 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -2273,9 +2273,6 @@ static void on_monitors_changed_internal (MetaMonitorManager *manager, MetaScreen *screen) { - MetaBackend *backend; - MetaCursorRenderer *cursor_renderer; - meta_monitor_manager_get_screen_size (manager, &screen->rect.width, &screen->rect.height); @@ -2306,10 +2303,6 @@ on_monitors_changed_internal (MetaMonitorManager *manager, meta_screen_foreach_window (screen, META_LIST_DEFAULT, meta_screen_resize_func, 0); meta_screen_queue_check_fullscreen (screen); - - backend = meta_get_backend (); - cursor_renderer = meta_backend_get_cursor_renderer (backend); - meta_cursor_renderer_force_update (cursor_renderer); } static void