[metacity] window: change calc-showing and update-icon priority
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] window: change calc-showing and update-icon priority
- Date: Tue, 28 Feb 2017 01:53:44 +0000 (UTC)
commit ed14599fd0bc4fccca867151ffe118a44b3ee990
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 3873da3..83d7c5c 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -1747,9 +1747,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]