cleanup and patch

This commit is contained in:
2026-02-11 10:15:29 -05:00
parent 7ba87ec6d0
commit 12144d4514
4 changed files with 53 additions and 2169 deletions

11
dwm.c
View File

@@ -183,6 +183,7 @@ static void maprequest(XEvent *e);
static void monocle(Monitor *m);
static void motionnotify(XEvent *e);
static void movemouse(const Arg *arg);
static void movecenter(const Arg *arg);
static Client *nexttiled(Client *c);
static void pop(Client *c);
static void propertynotify(XEvent *e);
@@ -1202,6 +1203,16 @@ movemouse(const Arg *arg)
}
}
void
movecenter(const Arg *arg)
{
if (selmon->sel) {
selmon->sel->x = selmon->sel->mon->mx + (selmon->sel->mon->mw - WIDTH(selmon->sel)) / 2;
selmon->sel->y = selmon->sel->mon->my + (selmon->sel->mon->mh - HEIGHT(selmon->sel)) / 2;
arrange(selmon);
}
}
Client *
nexttiled(Client *c)
{