diff options
| author | bakkeby <[email protected]> | 2021-05-30 19:22:00 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2021-05-30 19:22:00 +0200 |
| commit | 246f8f7260ee3fdd0cf0d6d73163cb1f4604c895 (patch) | |
| tree | a2a689dc5bd17270b29bbc603122799943c849af /dwm.c | |
| parent | a76fb54d790aef6c9a06b1adee23039c659db535 (diff) | |
| download | dwm-flexipatch-246f8f7260ee3fdd0cf0d6d73163cb1f4604c895.tar.gz dwm-flexipatch-246f8f7260ee3fdd0cf0d6d73163cb1f4604c895.zip | |
Adding togglelayout patch
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -3369,7 +3369,9 @@ setfullscreen(Client *c, int fullscreen) void setlayout(const Arg *arg) { + #if !TOGGLELAYOUT_PATCH if (!arg || !arg->v || arg->v != selmon->lt[selmon->sellt]) { + #endif // TOGGLELAYOUT_PATCH #if PERTAG_PATCH selmon->pertag->sellts[selmon->pertag->curtag] ^= 1; selmon->sellt = selmon->pertag->sellts[selmon->pertag->curtag]; @@ -3387,8 +3389,14 @@ setlayout(const Arg *arg) } } #endif // EXRESIZE_PATCH + #if !TOGGLELAYOUT_PATCH } + #endif // TOGGLELAYOUT_PATCH + #if TOGGLELAYOUT_PATCH + if (arg && arg->v && arg->v != selmon->lt[selmon->sellt ^ 1]) + #else if (arg && arg->v) + #endif // TOGGLELAYOUT_PATCH #if PERTAG_PATCH selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt] = (Layout *)arg->v; selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt]; @@ -4611,7 +4619,7 @@ view(const Arg *arg) view(&((Arg) { .ui = 0 })); #endif // VIEW_SAME_TAG_GIVES_PREVIOUS_TAG_PATCH return; - } + } selmon->seltags ^= 1; /* toggle sel tagset */ #if PERTAG_PATCH pertagview(arg); |
