kathenas / rpms / mutter

Forked from rpms/mutter 5 years ago
Clone

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

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