]> git.lizzy.rs Git - bspwm.git/blobdiff - src/tree.c
Add new setting: borderless_singleton
[bspwm.git] / src / tree.c
index 21a55729e33df795e69fc562f2a87cf44a5e611b..ec7a785a3d22e49660a53d06ec6d134c95866cae 100644 (file)
@@ -89,7 +89,9 @@ void apply_layout(monitor_t *m, desktop_t *d, node_t *n, xcb_rectangle_t rect, x
                }
 
                unsigned int bw;
+               bool the_only_window = !m->prev && !m->next && d->root->client;
                if ((borderless_monocle && d->layout == LAYOUT_MONOCLE && IS_TILED(n->client))
+                   || (borderless_singleton && the_only_window)
                    || n->client->state == STATE_FULLSCREEN) {
                        bw = 0;
                } else {