Blame SOURCES/0007-backends-native-update-cursor-on-resume.patch

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