pidgin: 81c4b8b6: gnt: Make sure the ordering of the windo...

sadrul at pidgin.im sadrul at pidgin.im
Thu Jan 28 12:52:40 EST 2010


-----------------------------------------------------------------
Revision: 81c4b8b6e0da3414447106ddc18cf1a9fd4959da
Ancestor: 2ad6164d01badb4f7049cc123c04bff6a25c5f84
Author: sadrul at pidgin.im
Date: 2010-01-28T17:24:13
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/81c4b8b6e0da3414447106ddc18cf1a9fd4959da

Modified files:
        finch/libgnt/gntwm.c

ChangeLog: 

gnt: Make sure the ordering of the windows is correct after a refresh.

-------------- next part --------------
============================================================
--- finch/libgnt/gntwm.c	526406516c94898e3c9d035de56b995753a184eb
+++ finch/libgnt/gntwm.c	1107af6ea0aef7f5cb7fa0465b25e2554d15c943
@@ -1113,12 +1113,20 @@ refresh_screen(GntBindable *bindable, GL
 refresh_screen(GntBindable *bindable, GList *null)
 {
 	GntWM *wm = GNT_WM(bindable);
+	GList *iter;
 
 	endwin();
 	refresh();
 
 	g_hash_table_foreach(wm->nodes, (GHFunc)refresh_node, GINT_TO_POINTER(TRUE));
 	g_signal_emit(wm, signals[SIG_TERMINAL_REFRESH], 0);
+
+	for (iter = g_list_last(wm->cws->ordered); iter; iter = iter->prev) {
+		GntWidget *w = iter->data;
+		GntNode *node = g_hash_table_lookup(wm->nodes, w);
+		top_panel(node->panel);
+	}
+
 	gnt_ws_draw_taskbar(wm->cws, TRUE);
 	update_screen(wm);
 	curs_set(0);   /* endwin resets the cursor to normal */


More information about the Commits mailing list