soc.2008.finch: e3245620: Don't bring window to the front immediat...

queueram at soc.pidgin.im queueram at soc.pidgin.im
Sat Sep 20 23:45:40 EDT 2008


-----------------------------------------------------------------
Revision: e3245620389099728cd07c253dad74ebed1d8c9a
Ancestor: c63a120d2471cc17514c68853d43c9a5901a977f
Author: queueram at soc.pidgin.im
Date: 2008-09-20T18:21:37
Branch: im.pidgin.soc.2008.finch
URL: http://d.pidgin.im/viewmtn/revision/info/e3245620389099728cd07c253dad74ebed1d8c9a

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

ChangeLog: 

Don't bring window to the front immediately unless the was previously empty.

-------------- next part --------------
============================================================
--- finch/libgnt/wms/tiling.c	cd8e8b53d67c65395df0b761d4bd38d95e026621
+++ finch/libgnt/wms/tiling.c	92f7f3fd3da3b324da62ba78628e6195c62f4be6
@@ -366,10 +366,14 @@ tiling_wm_new_window(GntWM *wm, GntWidge
 		if ((cur_win = g_queue_peek_head(twm->current->windows))) {
 			twm_hide_window(wm, cur_win);
 		}
-		g_queue_push_head(twm->current->windows, win);
+		g_queue_push_tail(twm->current->windows, win);
 		twm_show_window_in_frame(wm, win, twm->current);
 	}
 	org_new_window(wm, win);
+
+	if(twm->current->windows->length == 1) {
+		gnt_wm_raise_window(wm, win);
+	}
 }
 
 static gboolean
@@ -928,7 +932,7 @@ twm_resize_move(GntBindable *bindable, G
 {
 	GntWM *wm = GNT_WM(bindable);
 	TilingWM *twm = (TilingWM*)wm;
-	TilingFrame *frame;
+	TilingFrame *frame = NULL;
 	int direction = GPOINTER_TO_INT(list->data);
 
 	/* resize mode */


More information about the Commits mailing list