void unmanage_window(xcb_window_t win) { coordinates_t loc; if (locate_window(win, &loc)) { put_status(SBSC_MASK_NODE_UNMANAGE, "node_unmanage 0x%08X 0x%08X 0x%08X\n", loc.monitor->id, loc.desktop->id, win); remove_node(loc.monitor, loc.desktop, loc.node); arrange(loc.monitor, loc.desktop); } else { for (pending_rule_t *pr = pending_rule_head; pr != NULL; pr = pr->next) { if (pr->win == win) { remove_pending_rule(pr); return; } } } }
void unmanage_window(xcb_window_t win) { coordinates_t loc; if (locate_window(win, &loc)) { put_status(SBSC_MASK_NODE_UNMANAGE, "node_unmanage %s %s 0x%X\n", loc.monitor, loc.desktop, win); remove_node(loc.monitor, loc.desktop, loc.node); if (frozen_pointer->window == win) { frozen_pointer->action = ACTION_NONE; } arrange(loc.monitor, loc.desktop); } else { for (pending_rule_t *pr = pending_rule_head; pr != NULL; pr = pr->next) { if (pr->win == win) { remove_pending_rule(pr); return; } } } }