支持 client 窗口浮动

This commit is contained in:
2026-01-28 23:40:15 +08:00
parent 5ecaa97f10
commit a772d0f56f
9 changed files with 75 additions and 18 deletions

View File

@@ -75,3 +75,9 @@ void raise_or_run(const user_action_arg_t *arg) {
user_action_arg_t arguments = {.ptr = command};
spawn(&arguments);
}
void toggle_client_floating(const user_action_arg_t *arg) {
if (!wm.client_focused) return;
client_set_floating(wm.client_focused, !wm.client_focused->floating);
}