]> Dogcows Code - chaz/openbox/commitdiff
let you lower siblings below eachother
authorDana Jansens <danakj@orodu.net>
Thu, 7 Jun 2007 18:59:30 +0000 (18:59 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 7 Jun 2007 18:59:30 +0000 (18:59 +0000)
openbox/stacking.c

index 4b01f45dbde00c159fc17cb7e7e7d40c5972b91e..afd890a4825dd3878f52c2b733d9b45bc284dc0c 100644 (file)
@@ -179,6 +179,11 @@ static void restack_windows(ObClient *selected, gboolean raise)
 
         /* that is, if it has any parents */
         if (!(top->data == selected && top->next == NULL)) {
+            /* place the window being lowered on the bottom so it'll be
+               below any of its peers that it can */
+            stacking_list = g_list_remove(stacking_list, selected);
+            stacking_list = g_list_append(stacking_list, selected);
+
             /* go thru stacking list backwards so we can use g_slist_prepend */
             for (it = g_list_last(stacking_list); it && top;
                  it = g_list_previous(it))
This page took 0.02854 seconds and 4 git commands to generate.