feat: 添加 _NET_WM_STATE_SKIP_TASKBAR 支持

- 新增 skip_taskbar 字段到 client_t
- 在 client_update_window_type 中检测并设置 skip_taskbar 状态
- 状态栏绘制时过滤 skip_taskbar 窗口
This commit is contained in:
2026-03-11 06:45:37 +08:00
parent cdcafa1216
commit 1ec92ec3e2
4 changed files with 9 additions and 1 deletions

View File

@@ -366,6 +366,7 @@ void client_update_window_type(client_t *client) {
if (state_reply) {
xcb_atom_t state = *(xcb_atom_t *)xcb_get_property_value(state_reply);
client->skip_taskbar = state == _NET_WM_STATE_SKIP_TASKBAR;
if (state == _NET_WM_STATE_FULLSCREEN) {
client_set_fullscreen(client, true);
}