changeset 18505:8925181f26ec

merge of '171f04bfc8138c0afa445e1d787144c3cdda819e' and '7fc5d026fb795b53babb96d1fc137ff0d3d841c8'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 12 Jul 2007 03:19:38 +0000
parents 94c23019a864 (current diff) 34ed4e7c08cb (diff)
children 9f029b7208f1
files
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntwm.c	Thu Jul 12 00:50:30 2007 +0000
+++ b/finch/libgnt/gntwm.c	Thu Jul 12 03:19:38 2007 +0000
@@ -829,6 +829,9 @@
 	if (wm->_list.window)
 		return TRUE;
 
+	if(!wm->cws->ordered)
+		return FALSE;
+
 	shift_window(wm, wm->cws->ordered->data, -1);
 	return TRUE;
 }
@@ -840,6 +843,9 @@
 	if (wm->_list.window)
 		return TRUE;
 
+	if(!wm->cws->ordered)
+		return FALSE;
+
 	shift_window(wm, wm->cws->ordered->data, 1);
 	return TRUE;
 }