mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
swallow / arrange mismatch: swallow needs XMapWindow for the window being called beforehand, whereas arrange needs it called afterwards
This commit is contained in:
parent
016cdf3857
commit
21fd715afa
11
dwm.c
11
dwm.c
@ -2276,17 +2276,24 @@ manage(Window w, XWindowAttributes *wa)
|
|||||||
unfocus(selmon->sel, 0, c);
|
unfocus(selmon->sel, 0, c);
|
||||||
c->mon->sel = c;
|
c->mon->sel = c;
|
||||||
#if SWALLOW_PATCH
|
#if SWALLOW_PATCH
|
||||||
if (!(term && swallow(term, c)))
|
if (!(term && swallow(term, c))) {
|
||||||
arrange(c->mon);
|
arrange(c->mon);
|
||||||
|
#if BAR_WINTITLEACTIONS_PATCH
|
||||||
|
if (!HIDDEN(c))
|
||||||
|
XMapWindow(dpy, c->win);
|
||||||
|
#else
|
||||||
|
XMapWindow(dpy, c->win);
|
||||||
|
#endif // BAR_WINTITLEACTIONS_PATCH
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
arrange(c->mon);
|
arrange(c->mon);
|
||||||
#endif // SWALLOW_PATCH
|
|
||||||
#if BAR_WINTITLEACTIONS_PATCH
|
#if BAR_WINTITLEACTIONS_PATCH
|
||||||
if (!HIDDEN(c))
|
if (!HIDDEN(c))
|
||||||
XMapWindow(dpy, c->win);
|
XMapWindow(dpy, c->win);
|
||||||
#else
|
#else
|
||||||
XMapWindow(dpy, c->win);
|
XMapWindow(dpy, c->win);
|
||||||
#endif // BAR_WINTITLEACTIONS_PATCH
|
#endif // BAR_WINTITLEACTIONS_PATCH
|
||||||
|
#endif // SWALLOW_PATCH
|
||||||
focus(NULL);
|
focus(NULL);
|
||||||
|
|
||||||
#if BAR_EWMHTAGS_PATCH
|
#if BAR_EWMHTAGS_PATCH
|
||||||
|
@ -18,6 +18,8 @@ swallow(Client *p, Client *c)
|
|||||||
if (c->noswallow < 0 && !swallowfloating && c->isfloating)
|
if (c->noswallow < 0 && !swallowfloating && c->isfloating)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
XMapWindow(dpy, c->win);
|
||||||
|
|
||||||
detach(c);
|
detach(c);
|
||||||
detachstack(c);
|
detachstack(c);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user