backend: move the cursor render update on screen changes here

https://bugzilla.gnome.org/show_bug.cgi?id=788860
This commit is contained in:
Marco Trevisan (Treviño) 2017-10-13 00:12:50 -05:00
parent f044511037
commit a8c80ccece
2 changed files with 2 additions and 7 deletions

View File

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

View File

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