bspwm
bspwm copied to clipboard
[Feature Request] Allow stack layering to be configured through bspc
I have hidden floating scratchpad setup and whenever I unhide it while a fullscreen window is in focus, the fullscreen window gets demoted to a tiling window. I have used a fork with stack.c patched to prevent this, but it is bothersome to constantly maintain it. It would be ideal to have that configured through bspc.
The patch:
diff --git a/src/stack.c b/src/stack.c
index 7d480eb..341d7d0 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -123,7 +123,7 @@ void remove_stack_node(node_t *n)
int stack_level(client_t *c)
{
int layer_level = (c->layer == LAYER_NORMAL ? 1 : (c->layer == LAYER_BELOW ? 0 : 2));
- int state_level = (IS_TILED(c) ? 0 : (IS_FLOATING(c) ? 1 : 2));
+ int state_level = (IS_TILED(c) ? 0 : (IS_FULLSCREEN(c) ? 1 : 2));
return 3 * layer_level + state_level;
}