This commit is contained in:
2026-07-12 08:16:17 +03:30
commit 72be1234e1
2027 changed files with 221388 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
void
movecenter(const Arg *arg)
{
Client *c = selmon->sel;
XEvent ev;
if (!c || !c->isfloating)
return;
c->x = c->mon->mx + (c->mon->mw - WIDTH(c)) / 2;
c->y = c->mon->my + (c->mon->mh - HEIGHT(c)) / 2;
XMoveWindow(dpy, c->win, c->x, c->y);
XSync(dpy, False);
while (XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}