From 59ba24c09e5d2a3210ca3d259789f7ba5ae6266a Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 15 Jan 2019 10:29:55 -0500 Subject: [PATCH 7/9] backends/native: update cursor on resume As mentioned in a previous commit, the proprietary NVIDIA driver garbles memory on suspend. That behavior, means that the cursor gets corrupted on suspend. This commit forces the cursor to redraw itself when the logind session becomes active (on VT switch and resume). --- src/backends/native/meta-backend-native.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backends/native/meta-backend-native.c b/src/backends/native/meta-backend-native.c index db9b63ac4..479e9326b 100644 --- a/src/backends/native/meta-backend-native.c +++ b/src/backends/native/meta-backend-native.c @@ -54,6 +54,7 @@ #include "backends/native/meta-renderer-native.h" #include "backends/native/meta-stage-native.h" #include "clutter/evdev/clutter-evdev.h" +#include "core/display-private.h" #include "core/meta-border.h" #include "meta/main.h" @@ -662,6 +663,7 @@ void meta_backend_native_resume (MetaBackendNative *native) if (cogl_has_feature (cogl_context, COGL_FEATURE_ID_UNSTABLE_TEXTURES)) { clutter_clear_glyph_cache (); + meta_display_update_cursor (display); g_signal_emit_by_name (display, "gl-video-memory-purged"); } -- 2.21.0