Commit Graph

19 Commits

Author SHA1 Message Date
86a89452a7 fix: 修复 raise_or_run 可能聚焦窗口不对 bug 2026-03-22 01:44:15 +08:00
ac4cfc1ed3 feat: 添加 focus_next_monitor 操作用于切换当前 monitor 2026-03-08 04:07:49 +08:00
4428eb056d fix: 修改 wm_set_current_monitor 函数实现避免光标乱跳
- 将 wm_set_current_monitor 改为支持 restore_cursor 参数,按场景决定是
  否恢复光标位置
- 仅在指针位于当前显示器时更新 cursor_position 缓存,减少错误覆盖
2026-03-03 07:23:34 +08:00
fb0999df90 feat: 统一 current_monitor 切换并让光标跟随 current_monitor 变化
- 新增 wm_set_current_monitor ,切换前记录光标当前所在 monitor 的最后
  位置
- 切换到目标 monitor 时按需恢复该 monitor 的光标位置
- 将 action/event/client 中直接赋值 wm.current_monitor 的逻辑改为统一
  调用 wm_set_current_monitor
- 优化 monitor_restore_cursor_point:首次未初始化时计算并设置位置
- 为 wm_get_monitor_by_area / wm_get_monitor_by_point 增加
  returns_nonnull 约束,并让 by_point 复用 by_area
2026-03-03 04:11:02 +08:00
41a2289c96 feat: client 的任务栏标题点击行为根据 client 窗口的遮挡状态进行
- 当点击 client 在任务中的标题时,如果 client 被其他窗口遮挡,则将其显
示出来,否则切换其 minimize 属性
- 新增 rect 模块用于辅助判断 client 的遮挡状态,添加
rect_intersection/rect_subtract/rect_subtract_many 函数
- client 模块新增 client_get_obscured_state 计算 client 窗口被遮挡状态
- action 模块新增 change_client_state_dwim,实现上述的 client 状态切换
2026-03-03 00:35:11 +08:00
323a0f3711 支持窗口最小化功能 2026-02-26 11:28:56 +08:00
d516d8f9e0 添加关闭窗口功能 2026-02-24 03:13:23 +08:00
a69f3bbc64 状态栏添加音量显示并添加音量调节功能 2026-02-11 02:22:49 +08:00
0e07ba135b 支持窗口最大化操作 2026-02-04 12:13:19 +08:00
a5ce85be78 支持窗口全屏操作 2026-01-29 07:46:06 +08:00
a772d0f56f 支持 client 窗口浮动 2026-01-28 23:40:15 +08:00
5ecaa97f10 添加 raise_or_run 功能 2026-01-28 16:19:18 +08:00
049b18a496 调整 send_client_to_next_monitor 函数实现 2026-01-14 03:44:53 +08:00
6b49045ee9 切换 client 所在 monitor 2026-01-07 12:12:56 +08:00
2902c994ba 切换 client 所在 tag 2026-01-07 11:39:46 +08:00
6382afeb03 处理堆叠顺序 2025-12-22 11:37:18 +08:00
a26a903a19 添加重启和退出快捷键 2025-11-25 06:06:58 +08:00
e5927094d1 设置快捷键 2025-11-25 06:06:24 +08:00
ec93e6c023 点击切换 tag 功能做成 button 配置 2025-11-21 17:46:48 +08:00