调整 client 坐标配置流程

This commit is contained in:
2025-12-14 22:09:51 +08:00
parent ffc39cd2bf
commit 0c029b7bfd
4 changed files with 82 additions and 24 deletions

View File

@@ -253,14 +253,7 @@ void monitor_arrange(monitor_t *monitor) {
for (client_t *c = wm.client_list; c; c = c->next) {
task_in_tag_t *task = client_get_task_in_tag(c, tag);
if (task) {
if (task->geometry.x != c->geometry.x ||
task->geometry.y != c->geometry.y) {
client_move_to(c, task->geometry.x, task->geometry.y);
}
if (task->geometry.width != c->geometry.width ||
task->geometry.height != c->geometry.height) {
client_resize(c, task->geometry.width, task->geometry.height);
}
client_apply_task_geometry(c, task);
} else {
int16_t x = -c->geometry.width;
int16_t y = -c->geometry.height;