]> git.lizzy.rs Git - bspwm.git/commitdiff
Apply removal adjustments for the spiral a. i. s.
authorBastien Dejean <nihilhill@gmail.com>
Sun, 12 May 2019 08:27:00 +0000 (10:27 +0200)
committerBastien Dejean <nihilhill@gmail.com>
Sun, 12 May 2019 08:27:00 +0000 (10:27 +0200)
Fixes #966.

src/tree.c

index cc9099dd554a9bee7574048bf0c29c3aa60837c2..c57d034919fcc52da793f20b121e3fd4d09e99b0 100644 (file)
@@ -1254,7 +1254,13 @@ void unlink_node(monitor_t *m, desktop_t *d, node_t *n)
                }
 
                if (!n->vacant && removal_adjustment) {
-                       if (automatic_scheme == SCHEME_LONGEST_SIDE || g == NULL) {
+                       if (automatic_scheme == SCHEME_SPIRAL) {
+                               if (is_first_child(n)) {
+                                       rotate_tree(b, 270);
+                               } else {
+                                       rotate_tree(b, 90);
+                               }
+                       } else if (automatic_scheme == SCHEME_LONGEST_SIDE || g == NULL) {
                                if (p != NULL) {
                                        if (p->rectangle.width > p->rectangle.height) {
                                                b->split_type = TYPE_VERTICAL;