dwm gaps fix

This commit is contained in:
wt committed 2024-07-03 13:26:49 +07:00
1 parent 462ddeb37e
commit 0eef824184
4 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -98,7 +98,7 @@ static const Key keys[] = {
{ MODKEY, XK_r, setlayout, {.v = &layouts[3]} },
{ MODKEY|ShiftMask, XK_r, setlayout, {.v = &layouts[4]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY, XK_v, togglefloating, {0} },
{ MODKEY, XK_v, togglefloating, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -1490,7 +1490,7 @@ setfullscreen(Client *c, int fullscreen)
c->oldbw = c->bw;
c->bw = 0;
c->isfloating = 1;
resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh);
resizeclient(c, c->mon->mx+gap, c->mon->my+gap, c->mon->mw-gap-gap, c->mon->mh-gap-gap);
XRaiseWindow(dpy, c->win);
} else if (!fullscreen && c->isfullscreen){
XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32,
@@ -1502,7 +1502,7 @@ setfullscreen(Client *c, int fullscreen)
c->y = c->oldy;
c->w = c->oldw;
c->h = c->oldh;
resizeclient(c, c->x, c->y, c->w, c->h);
resizeclient(c, c->x+gap, c->y+gap, c->w-gap-gap, c->h-gap-gap);
arrange(c->mon);
}
}
BIN
View File
Binary file not shown.