mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
backend/native: Remove unnecessary cursor renderer update
It is already handled by the monitor-updated-internal signal handler in meta-cursor-renderer-native.c, which will always be called indirectly by resuming the monitor manager. While at it, remove a useless comment. https://gitlab.gnome.org/GNOME/mutter/issues/77
This commit is contained in:
parent
206634e0ed
commit
ad22b3f098
@ -645,8 +645,6 @@ void meta_backend_native_resume (MetaBackendNative *native)
|
|||||||
meta_backend_get_monitor_manager (backend);
|
meta_backend_get_monitor_manager (backend);
|
||||||
MetaMonitorManagerKms *monitor_manager_kms =
|
MetaMonitorManagerKms *monitor_manager_kms =
|
||||||
META_MONITOR_MANAGER_KMS (monitor_manager);
|
META_MONITOR_MANAGER_KMS (monitor_manager);
|
||||||
MetaCursorRenderer *cursor_renderer;
|
|
||||||
MetaCursorRendererNative *cursor_renderer_native;
|
|
||||||
ClutterActor *stage;
|
ClutterActor *stage;
|
||||||
MetaIdleMonitor *idle_monitor;
|
MetaIdleMonitor *idle_monitor;
|
||||||
|
|
||||||
@ -658,10 +656,6 @@ void meta_backend_native_resume (MetaBackendNative *native)
|
|||||||
stage = meta_backend_get_stage (backend);
|
stage = meta_backend_get_stage (backend);
|
||||||
clutter_actor_queue_redraw (stage);
|
clutter_actor_queue_redraw (stage);
|
||||||
|
|
||||||
cursor_renderer = meta_backend_get_cursor_renderer (backend);
|
|
||||||
cursor_renderer_native = META_CURSOR_RENDERER_NATIVE (cursor_renderer);
|
|
||||||
meta_cursor_renderer_native_force_update (cursor_renderer_native);
|
|
||||||
|
|
||||||
idle_monitor = meta_backend_get_idle_monitor (backend, 0);
|
idle_monitor = meta_backend_get_idle_monitor (backend, 0);
|
||||||
meta_idle_monitor_reset_idletime (idle_monitor);
|
meta_idle_monitor_reset_idletime (idle_monitor);
|
||||||
}
|
}
|
||||||
|
@ -1108,7 +1108,6 @@ static void
|
|||||||
on_monitors_changed (MetaMonitorManager *monitors,
|
on_monitors_changed (MetaMonitorManager *monitors,
|
||||||
MetaCursorRendererNative *native)
|
MetaCursorRendererNative *native)
|
||||||
{
|
{
|
||||||
/* Our tracking is all messed up, so force an update. */
|
|
||||||
force_update_hw_cursor (native);
|
force_update_hw_cursor (native);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1180,9 +1179,3 @@ static void
|
|||||||
meta_cursor_renderer_native_init (MetaCursorRendererNative *native)
|
meta_cursor_renderer_native_init (MetaCursorRendererNative *native)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
meta_cursor_renderer_native_force_update (MetaCursorRendererNative *native)
|
|
||||||
{
|
|
||||||
force_update_hw_cursor (native);
|
|
||||||
}
|
|
||||||
|
@ -32,8 +32,6 @@ G_DECLARE_FINAL_TYPE (MetaCursorRendererNative, meta_cursor_renderer_native,
|
|||||||
META, CURSOR_RENDERER_NATIVE,
|
META, CURSOR_RENDERER_NATIVE,
|
||||||
MetaCursorRenderer)
|
MetaCursorRenderer)
|
||||||
|
|
||||||
void meta_cursor_renderer_native_force_update (MetaCursorRendererNative *renderer);
|
|
||||||
|
|
||||||
MetaCursorRendererNative * meta_cursor_renderer_native_new (MetaBackend *backend);
|
MetaCursorRendererNative * meta_cursor_renderer_native_new (MetaBackend *backend);
|
||||||
|
|
||||||
#endif /* META_CURSOR_RENDERER_NATIVE_H */
|
#endif /* META_CURSOR_RENDERER_NATIVE_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user