Blame SOURCES/0001-background-refresh-after-suspend-on-wayland.patch

c7fac9
From 2d63749878c1afa7d83a44c4d5e6c1aec3414b71 Mon Sep 17 00:00:00 2001
c7fac9
From: Ray Strode <rstrode@redhat.com>
c7fac9
Date: Tue, 15 Jan 2019 12:51:16 -0500
c7fac9
Subject: [PATCH 1/4] background: refresh after suspend on wayland
c7fac9
c7fac9
At the moment we only refresh after suspend on Xorg.
c7fac9
c7fac9
We need to do it on wayland, too.
c7fac9
---
c7fac9
 src/shell-util.c | 3 ---
c7fac9
 1 file changed, 3 deletions(-)
c7fac9
c7fac9
diff --git a/src/shell-util.c b/src/shell-util.c
c7fac9
index 70b8c0611..c43bf4cc5 100644
c7fac9
--- a/src/shell-util.c
c7fac9
+++ b/src/shell-util.c
c7fac9
@@ -372,63 +372,60 @@ shell_util_cursor_tracker_to_clutter (MetaCursorTracker *tracker,
c7fac9
       clutter_actor_show (CLUTTER_ACTOR (texture));
c7fac9
       clutter_texture_set_cogl_texture (texture, sprite);
c7fac9
     }
c7fac9
   else
c7fac9
     {
c7fac9
       clutter_actor_hide (CLUTTER_ACTOR (texture));
c7fac9
     }
c7fac9
 }
c7fac9
 
c7fac9
 typedef const gchar *(*ShellGLGetString) (GLenum);
c7fac9
 
c7fac9
 static const gchar *
c7fac9
 get_gl_vendor (void)
c7fac9
 {
c7fac9
   static const gchar *vendor = NULL;
c7fac9
 
c7fac9
   if (!vendor)
c7fac9
     {
c7fac9
       ShellGLGetString gl_get_string;
c7fac9
       gl_get_string = (ShellGLGetString) cogl_get_proc_address ("glGetString");
c7fac9
       if (gl_get_string)
c7fac9
         vendor = gl_get_string (GL_VENDOR);
c7fac9
     }
c7fac9
 
c7fac9
   return vendor;
c7fac9
 }
c7fac9
 
c7fac9
 gboolean
c7fac9
 shell_util_need_background_refresh (void)
c7fac9
 {
c7fac9
-  if (!clutter_check_windowing_backend (CLUTTER_WINDOWING_X11))
c7fac9
-    return FALSE;
c7fac9
-
c7fac9
   if (g_strcmp0 (get_gl_vendor (), "NVIDIA Corporation") == 0)
c7fac9
     return TRUE;
c7fac9
 
c7fac9
   return FALSE;
c7fac9
 }
c7fac9
 
c7fac9
 static gboolean
c7fac9
 canvas_draw_cb (ClutterContent *content,
c7fac9
                 cairo_t        *cr,
c7fac9
                 gint            width,
c7fac9
                 gint            height,
c7fac9
                 gpointer        user_data)
c7fac9
 {
c7fac9
   cairo_surface_t *surface = user_data;
c7fac9
 
c7fac9
   cairo_set_source_surface (cr, surface, 0, 0);
c7fac9
   cairo_paint (cr);
c7fac9
 
c7fac9
   return FALSE;
c7fac9
 }
c7fac9
 
c7fac9
 /**
c7fac9
  * shell_util_get_content_for_window_actor:
c7fac9
  * @window_actor: a #MetaWindowActor
c7fac9
  * @window_rect: a #MetaRectangle
c7fac9
  *
c7fac9
  * Returns: (transfer full): a new #ClutterContent
c7fac9
  */
c7fac9
 ClutterContent *
c7fac9
 shell_util_get_content_for_window_actor (MetaWindowActor *window_actor,
c7fac9
-- 
c7fac9
2.18.1
c7fac9