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

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