swm

sigma window manager
git clone git://wolog.xyz/swm
Log | Files | Refs | README | LICENSE

commit 1073f6ffa01102a29355993fe37c2f3da11d10d8
parent 6372b62739ff4eeb2b77fa0e66a502a66664e84f
Author: Raymond Cole <rc@wolog.xyz>
Date:   Sun,  3 Nov 2024 04:23:23 +0000

Change zooming behavior

Diffstat:
MREADME | 2++
Mconfig.c | 11++++++++---
2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/README b/README @@ -47,6 +47,8 @@ rest of the section Super is assumed to be the modifier key for swm. - Super+Shift+{j,k}: Shift the focused window. +- Super+Space: Make the focused window the first. + - Super+*n*: switch to the *n*th workspace. - Super+Shift+*n*: Tag the focused window with tag *n*; usually has the diff --git a/config.c b/config.c @@ -264,7 +264,9 @@ needfocus1: setscratch(selmon->sel, !selmon->sel->isscratch); break; case XK_space: - swap(selmon->sel, selmon->clients); + detach(selmon->sel); + attach(selmon->sel); + parrange(selmon); break; } break; @@ -392,8 +394,11 @@ buttonpress(XEvent *e) } break; case BarWinTitle: - if (!mod && ev->button == Button2 && selmon->sel) - swap(selmon->sel, selmon->clients); + if (!mod && ev->button == Button2 && selmon->sel) { + detach(selmon->sel); + attach(selmon->sel); + parrange(selmon); + } break; case BarStatus: {