commit c0ad915d0a91a28c95b4d7112b146a515efb6db0
parent 5cea6641a17989d6a2b34a77dfcdf489c82fc602
Author: wh1tepearl <wh1tepearl@gmail.com>
Date: Sat, 16 May 2026 22:54:36 +0100
rename zoom to swapmaster (i wonder why, maybe something is coming?)
Diffstat:
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -122,7 +122,7 @@ static const Key keys[] = {
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
- { MODKEY, XK_Return, zoom, {0} },
+ { MODKEY, XK_Return, swapmaster, {0} },
{ MODKEY, XK_0, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
diff --git a/modules.def.h b/modules.def.h
@@ -73,7 +73,7 @@ Even though this sounds complex, it is actually pretty lightweight, and is very
#define WARP_TO_CLIENT 0 // Includes the warp to client function needed for all options below.
#define WARP_TO_CENTER_OF_NEW_WINDOW 0 // Warps the cursor to center of the new window.
#define WARP_TO_CENTER_OF_PREVIOUS_WINDOW 0 // Warps cursor to center of the previous window after closing a window.
-#define WARP_TO_CENTER_OF_ZOOMED_WINDOW 0 // Warps cursor to center of the window that was zoomed using zoom function.
+#define WARP_TO_CENTER_OF_SWAPMASTERED_WINDOW 0 // Warps cursor to center of the window that was swapped using swapmaster function.
#define WARP_TO_CENTER_OF_WINDOW_AFFECTED_BY_INCNMASTER 0 // Warps the cursor to center of the window that gets affected in use of incnmaster.
#define WARP_TO_CENTER_OF_WINDOW_AFFECTED_BY_ENHANCED_TOGGLE_FLOATING 0 // Warps cursor to center of the window that was affected by using enhancedtogglefloating function.
#define WARP_TO_CENTER_OF_WINDOW_AFFECTED_BY_FOCUSSTACK 0 // Warps cursor to center of the window that was focused by using focusstack function.
diff --git a/vxwm.c b/vxwm.c
@@ -303,7 +303,7 @@ static Monitor *wintomon(Window w);
static int xerror(Display *dpy, XErrorEvent *ee);
static int xerrordummy(Display *dpy, XErrorEvent *ee);
static int xerrorstart(Display *dpy, XErrorEvent *ee);
-static void zoom(const Arg *arg);
+static void swapmaster(const Arg *arg);
#include "modules/vxwm_includes.h"
@@ -2728,10 +2728,10 @@ xerrorstart(Display *dpy, XErrorEvent *ee)
}
void
-zoom(const Arg *arg)
+swapmaster(const Arg *arg)
{
Client *c = selmon->sel;
-#if WARP_TO_CLIENT && WARP_TO_CENTER_OF_ZOOMED_WINDOW
+#if WARP_TO_CLIENT && WARP_TO_CENTER_OF_SWAPMASTERED_WINDOW
Client *target = c;
#endif
@@ -2740,7 +2740,7 @@ zoom(const Arg *arg)
if (c == nexttiled(selmon->clients) && !(c = nexttiled(c->next)))
return;
pop(c);
-#if WARP_TO_CLIENT && WARP_TO_CENTER_OF_ZOOMED_WINDOW
+#if WARP_TO_CLIENT && WARP_TO_CENTER_OF_SWAPMASTERED_WINDOW
warptoclient(target);
#endif
}