[metacity/gnome-3-24] compositor: change repaint priority



commit ecb6fc3d02b992c0a5a6e5d2601d74e92e5764bb
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Feb 27 16:01:30 2017 +0200

    compositor: change repaint priority

 src/compositor/meta-compositor-xrender.c |    2 +-
 src/include/common.h                     |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index a407638..3f314c8 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -1848,7 +1848,7 @@ add_repair (MetaCompositorXRender *xrender)
     return;
 
 #if 1
-  xrender->repaint_id = g_idle_add_full (G_PRIORITY_HIGH_IDLE,
+  xrender->repaint_id = g_idle_add_full (META_PRIORITY_REDRAW,
                                          compositor_idle_cb, xrender,
                                          NULL);
 #else
diff --git a/src/include/common.h b/src/include/common.h
index ad03176..1ccc3f7 100644
--- a/src/include/common.h
+++ b/src/include/common.h
@@ -202,8 +202,10 @@ typedef enum
 
 #define META_DEFAULT_ICON_NAME "window"
 
-/* This is between GTK_PRIORITY_RESIZE (+10) and GDK_PRIORITY_REDRAW (+20) */
+/* #define GTK_PRIORITY_RESIZE       (G_PRIORITY_HIGH_IDLE + 10) */
 #define META_PRIORITY_RESIZE         (G_PRIORITY_HIGH_IDLE + 15)
+/* #define GDK_PRIORITY_REDRAW       (G_PRIORITY_HIGH_IDLE + 20) */
+#define META_PRIORITY_REDRAW         (G_PRIORITY_HIGH_IDLE + 40)
 
 #define META_PRIORITY_PREFS_NOTIFY   (G_PRIORITY_DEFAULT_IDLE + 10)
 #define META_PRIORITY_WORK_AREA_HINT (G_PRIORITY_DEFAULT_IDLE + 15)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]