mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-10 05:34:05 -04:00
opt: optimize center tile layout resizewin
This commit is contained in:
parent
09c1707931
commit
31284b4b5d
1 changed files with 4 additions and 2 deletions
|
|
@ -280,9 +280,11 @@ void resize_tile_master_horizontal(Client *grabc, bool isdrag, int32_t offsetx,
|
|||
wl_list_for_each(tc, &clients, link) {
|
||||
if (VISIBLEON(tc, grabc->mon) && ISTILED(tc)) {
|
||||
|
||||
if (!isdrag && tc != grabc && type != CENTER_TILE) {
|
||||
if (!isdrag && tc != grabc) {
|
||||
if (!tc->ismaster && new_stack_inner_per != 1.0f &&
|
||||
grabc->old_stack_inner_per != 1.0f)
|
||||
grabc->old_stack_inner_per != 1.0f &&
|
||||
(type != CENTER_TILE ||
|
||||
!(grabc->isleftstack ^ tc->isleftstack)))
|
||||
tc->stack_inner_per = (1 - new_stack_inner_per) /
|
||||
(1 - grabc->old_stack_inner_per) *
|
||||
tc->stack_inner_per;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue