Skip to content

Commit 8ac331a

Browse files
committed
opt: disable resize scroller window when it force to default single size
1 parent e59b9c1 commit 8ac331a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/layout/arrange.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@ void resize_tile_scroller(Client *grabc, bool isdrag, int offsetx, int offsety,
374374
float delta_x, delta_y;
375375
float new_scroller_proportion;
376376

377+
if (grabc && grabc->mon->visible_tiling_clients == 1 &&
378+
!scroller_ignore_proportion_single)
379+
return;
380+
377381
if (!start_drag_window && isdrag) {
378382
drag_begin_cursorx = cursor->x;
379383
drag_begin_cursory = cursor->y;

0 commit comments

Comments
 (0)