]> git.lizzy.rs Git - bspwm.git/blobdiff - window.c
Remove `apply_floating_atom` setting
[bspwm.git] / window.c
index 0d01f7c0b8591e8fb488ec76dc8ca59c6d78ef6e..ce00809c8368faf72b08ff2a2e10739259a91d33 100644 (file)
--- a/window.c
+++ b/window.c
@@ -74,7 +74,6 @@ void manage_window(xcb_window_t win, rule_consequence_t *csq, int fd)
        if (!csq->manage) {
                free(csq->layer);
                free(csq->state);
-               disable_floating_atom(win);
                window_show(win);
                return;
        }
@@ -157,7 +156,6 @@ void manage_window(xcb_window_t win, rule_consequence_t *csq, int fd)
                c->layer = *(csq->layer);
        }
 
-       disable_floating_atom(c->window);
        set_state(m, d, n, csq->state != NULL ? *(csq->state) : c->state);
        set_locked(m, d, n, csq->locked);
        set_sticky(m, d, n, csq->sticky);
@@ -453,17 +451,13 @@ void set_floating(monitor_t *m, desktop_t *d, node_t *n, bool value)
                return;
        }
 
-       client_t *c = n->client;
-
        n->split_mode = MODE_AUTOMATIC;
        n->vacant = value;
        update_vacant_state(n->parent);
 
        if (value) {
-               enable_floating_atom(c->window);
                unrotate_brother(n);
        } else {
-               disable_floating_atom(c->window);
                rotate_brother(n);
                if (d->focus == n) {
                        neutralize_obscuring_windows(m, d, n);
@@ -578,23 +572,6 @@ void set_urgency(monitor_t *m, desktop_t *d, node_t *n, bool value)
        put_status(SBSC_MASK_REPORT);
 }
 
-void set_floating_atom(xcb_window_t win, uint32_t value)
-{
-       if (!apply_floating_atom)
-               return;
-       set_atom(win, _BSPWM_FLOATING_WINDOW, value);
-}
-
-void enable_floating_atom(xcb_window_t win)
-{
-       set_floating_atom(win, 1);
-}
-
-void disable_floating_atom(xcb_window_t win)
-{
-       set_floating_atom(win, 0);
-}
-
 uint32_t get_border_color(client_t *c, bool focused_window, bool focused_monitor)
 {
        if (c == NULL)