支持窗口最小化功能

This commit is contained in:
2026-02-26 11:28:56 +08:00
parent 8c0b295115
commit 323a0f3711
6 changed files with 91 additions and 26 deletions

View File

@@ -105,6 +105,14 @@ void toggle_client_maximize(const user_action_arg_t *arg) {
client_set_maximize(wm.client_focused, !wm.client_focused->maximize);
}
void toggle_client_minimize(const user_action_arg_t *arg) {
client_t *client = wm.client_focused;
if (arg->ptr) client = (client_t *)arg->ptr;
if (!client) return;
client_set_minimize(client, !client->minimize);
}
void kill_client(const user_action_arg_t *arg) {
if (wm.client_focused) {
client_kill(wm.client_focused);