From 7412794c667483bbd6aeb2137f0c6f39c332035b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 9 May 2018 18:50:37 +0200 Subject: [PATCH] cursor-renderer/native: Update hw state via generic update path When force-updating the HW state we might end up with a situation where the HW cursor is no longer usable. If this would happen, we'd before this commit not trigger the fallback paths using a GL texture. https://gitlab.gnome.org/GNOME/mutter/issues/77 --- src/backends/native/meta-cursor-renderer-native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/native/meta-cursor-renderer-native.c b/src/backends/native/meta-cursor-renderer-native.c index e151afce5..c8ebe3bff 100644 --- a/src/backends/native/meta-cursor-renderer-native.c +++ b/src/backends/native/meta-cursor-renderer-native.c @@ -1101,7 +1101,7 @@ force_update_hw_cursor (MetaCursorRendererNative *native) meta_cursor_renderer_native_get_instance_private (native); priv->hw_state_invalidated = TRUE; - update_hw_cursor (native, meta_cursor_renderer_get_cursor (renderer)); + meta_cursor_renderer_force_update (renderer); } static void