soc.2008.finch: 62fd7c5e: Fix a bug that was introduced when the G...

queueram at soc.pidgin.im queueram at soc.pidgin.im
Sun Sep 21 00:00:37 EDT 2008


-----------------------------------------------------------------
Revision: 62fd7c5eb0c1a0fcc5bdfb7d993501edfbd51608
Ancestor: 6ba1798dab7dc54585ad233449cbd8b5834d4292
Author: queueram at soc.pidgin.im
Date: 2008-09-21T03:57:22
Branch: im.pidgin.soc.2008.finch
URL: http://d.pidgin.im/viewmtn/revision/info/62fd7c5eb0c1a0fcc5bdfb7d993501edfbd51608

Modified files:
        finch/libgnt/wms/tiling.c

ChangeLog: 

Fix a bug that was introduced when the GQueues were starting to be used to
keep track of the windows per frame.  This removes a duplicate window from
being in the list when all frame splits are removed.

-------------- next part --------------
============================================================
--- finch/libgnt/wms/tiling.c	6a0ff4799d03feb5cfad7aae409064704c550c2e
+++ finch/libgnt/wms/tiling.c	98e802e4c7b2204b026999eb19cbce6ff0dbcdf5
@@ -675,6 +675,8 @@ remove_all_split(GntBindable *bindable, 
 		free_tiling_frames(wm, twm->root.right_bottom);
 
 		if (win) {
+			/* remove it and add it to the front */
+			twm_g_queue_remove(twm->current->windows, win);
 			g_queue_push_head(twm->current->windows, win);
 			twm_move_window_to_frame(win, twm->current);
 		}


More information about the Commits mailing list