Commit ed3e1a0
committed
src/auto_tiler: Sync smart_gapped on each tiling attempt.
The first window is fully maximized, and then later when a second
window is opened, we don't get border for the first window when it
is in focus because after tiling the first window has stale value
for smart_gapped, and thus is_single_max_screen() returns true,
causing permitted in show_border() to be false.
Let's set smart_gapped for each window in a tree each time we tile.
Closes: #1758
Signed-off-by: Siddh Raman Pant <25429745+siddhpant@users.noreply.github.com>1 parent 7898b65 commit ed3e1a0
1 file changed
Lines changed: 38 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
32 | 69 | | |
33 | 70 | | |
34 | 71 | | |
| |||
106 | 143 | | |
107 | 144 | | |
108 | 145 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 146 | | |
117 | 147 | | |
118 | 148 | | |
| |||
132 | 162 | | |
133 | 163 | | |
134 | 164 | | |
135 | | - | |
136 | 165 | | |
137 | 166 | | |
138 | 167 | | |
| |||
490 | 519 | | |
491 | 520 | | |
492 | 521 | | |
| 522 | + | |
493 | 523 | | |
494 | 524 | | |
495 | 525 | | |
| |||
0 commit comments