finch/libgnt/gntwm.c

changeset 18756
5498c1e29cca
parent 18638
cf86c3ae160f
child 18788
6617cf363381
equal deleted inserted replaced
18736:421ff8bee10c 18756:5498c1e29cca
827 { 827 {
828 GntWM *wm = GNT_WM(bindable); 828 GntWM *wm = GNT_WM(bindable);
829 if (wm->_list.window) 829 if (wm->_list.window)
830 return TRUE; 830 return TRUE;
831 831
832 if(!wm->cws->ordered)
833 return FALSE;
834
832 shift_window(wm, wm->cws->ordered->data, -1); 835 shift_window(wm, wm->cws->ordered->data, -1);
833 return TRUE; 836 return TRUE;
834 } 837 }
835 838
836 static gboolean 839 static gboolean
837 shift_right(GntBindable *bindable, GList *null) 840 shift_right(GntBindable *bindable, GList *null)
838 { 841 {
839 GntWM *wm = GNT_WM(bindable); 842 GntWM *wm = GNT_WM(bindable);
840 if (wm->_list.window) 843 if (wm->_list.window)
841 return TRUE; 844 return TRUE;
845
846 if(!wm->cws->ordered)
847 return FALSE;
842 848
843 shift_window(wm, wm->cws->ordered->data, 1); 849 shift_window(wm, wm->cws->ordered->data, 1);
844 return TRUE; 850 return TRUE;
845 } 851 }
846 852

mercurial