[gnome-panel] multiscreen: use high priority idle



commit bb444b217fbe93f4f70bd875bf6a89fa790787e9
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Mar 28 01:27:12 2020 +0200

    multiscreen: use high priority idle
    
    This fixes few critical warnings when changing monitor
    configuration.

 gnome-panel/panel-multiscreen.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gnome-panel/panel-multiscreen.c b/gnome-panel/panel-multiscreen.c
index a6299d9a6..6f9a92d80 100644
--- a/gnome-panel/panel-multiscreen.c
+++ b/gnome-panel/panel-multiscreen.c
@@ -413,7 +413,10 @@ panel_multiscreen_queue_reinit (void)
   if (reinit_id)
     return;
 
-  reinit_id = g_idle_add (panel_multiscreen_reinit_idle, NULL);
+  reinit_id = g_idle_add_full (G_PRIORITY_HIGH_IDLE,
+                               panel_multiscreen_reinit_idle,
+                               NULL,
+                               NULL);
 }
 
 static void


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