[metacity/gnome-3-24] window: change calc-showing and update-icon priority



commit 2898b29bdc4e9f66e7cba0e24905d0187cba23f4
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Feb 27 16:12:19 2017 +0200

    window: change calc-showing and update-icon priority
    
    Prioritize these idles above redraws.

 src/core/window.c    |    6 +++---
 src/include/common.h |    1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 6879128..cb5b76d 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -1734,9 +1734,9 @@ meta_window_queue (MetaWindow *window, guint queuebits)
 
           const gint window_queue_idle_priority[NUMBER_OF_QUEUES] =
             {
-              G_PRIORITY_DEFAULT_IDLE,  /* CALC_SHOWING */
-              META_PRIORITY_RESIZE,     /* MOVE_RESIZE */
-              G_PRIORITY_DEFAULT_IDLE   /* UPDATE_ICON */
+              META_PRIORITY_BEFORE_REDRAW, /* CALC_SHOWING */
+              META_PRIORITY_RESIZE,        /* MOVE_RESIZE */
+              META_PRIORITY_BEFORE_REDRAW  /* UPDATE_ICON */
             };
 
           const GSourceFunc window_queue_idle_handler[NUMBER_OF_QUEUES] =
diff --git a/src/include/common.h b/src/include/common.h
index 1ccc3f7..711108a 100644
--- a/src/include/common.h
+++ b/src/include/common.h
@@ -205,6 +205,7 @@ typedef enum
 /* #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_BEFORE_REDRAW  (G_PRIORITY_HIGH_IDLE + 30)
 #define META_PRIORITY_REDRAW         (G_PRIORITY_HIGH_IDLE + 40)
 
 #define META_PRIORITY_PREFS_NOTIFY   (G_PRIORITY_DEFAULT_IDLE + 10)


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