[gtk+/gtk-3-20] Change the priority of the window-close idle to G_PRIORITY_DEFAULT



commit 26ca5dbc6b591cc941fad940323a9419e230ad40
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed Jul 6 09:46:43 2016 -0400

    Change the priority of the window-close idle to G_PRIORITY_DEFAULT
    
    If we have an application that never goes idle (or takes a long time to
    go idle), the close buttons in CSD decoration don't work properly.
    While it's not clear why the usage of an idle was added in the first
    place, keep on using it to avoid unexpected reentrancy problems, but
    change the priority to G_PRIORITY_DEFAULT.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768485

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index b19a643..fc18b68 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1341,7 +1341,7 @@ gtk_window_close (GtkWindow *window)
   if (!_gtk_widget_get_realized (GTK_WIDGET (window)))
     return;
 
-  window->priv->delete_event_handler = gdk_threads_add_idle (send_delete_event, window);
+  window->priv->delete_event_handler = gdk_threads_add_idle_full (G_PRIORITY_DEFAULT, send_delete_event, 
window, NULL);
   g_source_set_name_by_id (window->priv->delete_event_handler, "[gtk+] send_delete_event");
 }
 


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