core: Do not force cursor renderer update here

This is already taken care of in meta_backend_monitors_changed(), called
from the same code paths that emit ::monitors-changed-internal. It is
better to leave this up to backend internals.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403
This commit is contained in:
Carlos Garnacho 2020-07-10 12:04:35 +02:00
parent be51a8c18c
commit b07d9c5f92

View File

@ -3144,9 +3144,6 @@ static void
on_monitors_changed_internal (MetaMonitorManager *monitor_manager, on_monitors_changed_internal (MetaMonitorManager *monitor_manager,
MetaDisplay *display) MetaDisplay *display)
{ {
MetaBackend *backend;
MetaCursorRenderer *cursor_renderer;
meta_workspace_manager_reload_work_areas (display->workspace_manager); meta_workspace_manager_reload_work_areas (display->workspace_manager);
/* Fix up monitor for all windows on this display */ /* Fix up monitor for all windows on this display */
@ -3159,10 +3156,6 @@ on_monitors_changed_internal (MetaMonitorManager *monitor_manager,
meta_display_resize_func, 0); meta_display_resize_func, 0);
meta_display_queue_check_fullscreen (display); meta_display_queue_check_fullscreen (display);
backend = meta_get_backend ();
cursor_renderer = meta_backend_get_cursor_renderer (backend);
meta_cursor_renderer_force_update (cursor_renderer);
} }
void void