mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
opt: optimize center_tile layout slave client position
This commit is contained in:
parent
67d103fea1
commit
31b676b639
1 changed files with 2 additions and 1 deletions
|
|
@ -528,7 +528,8 @@ void center_tile(Monitor *m) {
|
|||
// 多个堆叠窗口:交替放在左右两侧
|
||||
unsigned int r = (n - i + 1) / 2;
|
||||
|
||||
if (stack_index % 2) {
|
||||
// 当n为奇数时翻转判断逻辑
|
||||
if ((stack_index % 2) ^ (n % 2 != 0)) {
|
||||
// 右侧堆叠窗口
|
||||
h = (m->w.height - ety - gappov - gappiv * (r - 1)) / r;
|
||||
int stack_x = m->w.x + mx + mw + gappih;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue