mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Compare commits
3 Commits
64162db4b9
...
43631961b8
Author | SHA1 | Date | |
---|---|---|---|
|
43631961b8 | ||
|
f4258747be | ||
|
3bc91e187c |
1
dwm.c
1
dwm.c
@ -4102,7 +4102,6 @@ spawn(const Arg *arg)
|
|||||||
if (arg->v == dmenucmd)
|
if (arg->v == dmenucmd)
|
||||||
dmenumon[0] = '0' + selmon->num;
|
dmenumon[0] = '0' + selmon->num;
|
||||||
#endif // NODMENU_PATCH
|
#endif // NODMENU_PATCH
|
||||||
fprintf(stderr, "spawn running cmd:\n");
|
|
||||||
|
|
||||||
#if RIODRAW_PATCH
|
#if RIODRAW_PATCH
|
||||||
if ((pid = fork()) == 0)
|
if ((pid = fork()) == 0)
|
||||||
|
@ -13,6 +13,9 @@ swallow(Client *p, Client *c)
|
|||||||
{
|
{
|
||||||
Client *s;
|
Client *s;
|
||||||
XWindowChanges wc;
|
XWindowChanges wc;
|
||||||
|
#if NOBORDER_PATCH
|
||||||
|
int border_padding = 0;
|
||||||
|
#endif // NOBORDER_PATCH
|
||||||
|
|
||||||
if (c->noswallow > 0 || c->isterminal)
|
if (c->noswallow > 0 || c->isterminal)
|
||||||
return 0;
|
return 0;
|
||||||
@ -46,9 +49,21 @@ swallow(Client *p, Client *c)
|
|||||||
setfloatinghint(s);
|
setfloatinghint(s);
|
||||||
#endif // BAR_EWMHTAGS_PATCH
|
#endif // BAR_EWMHTAGS_PATCH
|
||||||
|
|
||||||
|
#if NOBORDER_PATCH
|
||||||
|
wc.border_width = p->bw;
|
||||||
|
if (noborder(p)) {
|
||||||
|
wc.border_width = 0;
|
||||||
|
border_padding = p->bw * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
XConfigureWindow(dpy, p->win, CWBorderWidth, &wc);
|
||||||
|
XMoveResizeWindow(dpy, p->win, s->x, s->y, s->w + border_padding, s->h + border_padding);
|
||||||
|
#else
|
||||||
wc.border_width = p->bw;
|
wc.border_width = p->bw;
|
||||||
XConfigureWindow(dpy, p->win, CWBorderWidth, &wc);
|
XConfigureWindow(dpy, p->win, CWBorderWidth, &wc);
|
||||||
XMoveResizeWindow(dpy, p->win, s->x, s->y, s->w, s->h);
|
XMoveResizeWindow(dpy, p->win, s->x, s->y, s->w, s->h);
|
||||||
|
#endif // NOBORDER_PATCH
|
||||||
|
|
||||||
#if !BAR_FLEXWINTITLE_PATCH
|
#if !BAR_FLEXWINTITLE_PATCH
|
||||||
XSetWindowBorder(dpy, p->win, scheme[SchemeNorm][ColBorder].pixel);
|
XSetWindowBorder(dpy, p->win, scheme[SchemeNorm][ColBorder].pixel);
|
||||||
#endif // BAR_FLEXWINTITLE_PATCH
|
#endif // BAR_FLEXWINTITLE_PATCH
|
||||||
@ -65,6 +80,9 @@ unswallow(Client *c)
|
|||||||
{
|
{
|
||||||
XWindowChanges wc;
|
XWindowChanges wc;
|
||||||
c->win = c->swallowing->win;
|
c->win = c->swallowing->win;
|
||||||
|
#if NOBORDER_PATCH
|
||||||
|
int border_padding = 0;
|
||||||
|
#endif // NOBORDER_PATCH
|
||||||
|
|
||||||
free(c->swallowing);
|
free(c->swallowing);
|
||||||
c->swallowing = NULL;
|
c->swallowing = NULL;
|
||||||
@ -80,9 +98,20 @@ unswallow(Client *c)
|
|||||||
arrange(c->mon);
|
arrange(c->mon);
|
||||||
XMapWindow(dpy, c->win);
|
XMapWindow(dpy, c->win);
|
||||||
|
|
||||||
|
#if NOBORDER_PATCH
|
||||||
|
wc.border_width = c->bw;
|
||||||
|
if (noborder(c)) {
|
||||||
|
wc.border_width = 0;
|
||||||
|
border_padding = c->bw * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
XConfigureWindow(dpy, c->win, CWBorderWidth, &wc);
|
||||||
|
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w + border_padding, c->h + border_padding);
|
||||||
|
#else
|
||||||
wc.border_width = c->bw;
|
wc.border_width = c->bw;
|
||||||
XConfigureWindow(dpy, c->win, CWBorderWidth, &wc);
|
XConfigureWindow(dpy, c->win, CWBorderWidth, &wc);
|
||||||
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
|
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
|
||||||
|
#endif // NOBORDER_PATCH
|
||||||
#if !BAR_FLEXWINTITLE_PATCH
|
#if !BAR_FLEXWINTITLE_PATCH
|
||||||
XSetWindowBorder(dpy, c->win, scheme[SchemeNorm][ColBorder].pixel);
|
XSetWindowBorder(dpy, c->win, scheme[SchemeNorm][ColBorder].pixel);
|
||||||
#endif // BAR_FLEXWINTITLE_PATCH
|
#endif // BAR_FLEXWINTITLE_PATCH
|
||||||
|
Loading…
Reference in New Issue
Block a user