]> git.lizzy.rs Git - bspwm.git/blobdiff - stack.c
Fix typo
[bspwm.git] / stack.c
diff --git a/stack.c b/stack.c
index 2ae9cef1885438df2429f36580c68373ec026323..c1cbb95b940102eb9bfe3ee019e433b322b32250 100644 (file)
--- a/stack.c
+++ b/stack.c
@@ -165,7 +165,7 @@ stacking_list_t *limit_below(node_t *n)
 void stack(desktop_t *d, node_t *n, bool focused)
 {
        for (node_t *f = first_extrema(n); f != NULL; f = next_leaf(f, n)) {
-               if (IS_FLOATING(f->client) && !auto_raise) {
+               if (f->client == NULL || (IS_FLOATING(f->client) && !auto_raise)) {
                        continue;
                }
 
@@ -180,11 +180,11 @@ void stack(desktop_t *d, node_t *n, bool focused)
                        if (i < 0 || (i == 0 && !focused)) {
                                stack_insert_before(s, f);
                                window_below(f->id, s->node->id);
-                               put_status(SBSC_MASK_NODE_STACK, "node_stack 0x%X below 0x%X\n", f->id, s->node->id);
+                               put_status(SBSC_MASK_NODE_STACK, "node_stack 0x%08X below 0x%08X\n", f->id, s->node->id);
                        } else {
                                stack_insert_after(s, f);
                                window_above(f->id, s->node->id);
-                               put_status(SBSC_MASK_NODE_STACK, "node_stack 0x%X above 0x%X\n", f->id, s->node->id);
+                               put_status(SBSC_MASK_NODE_STACK, "node_stack 0x%08X above 0x%08X\n", f->id, s->node->id);
                        }
                }
        }