mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
for new clients trigger arrange before XMapWindow to avoid visual glitches
This commit is contained in:
parent
b25b92b5f4
commit
016cdf3857
12
dwm.c
12
dwm.c
@ -2275,18 +2275,18 @@ manage(Window w, XWindowAttributes *wa)
|
|||||||
if (c->mon == selmon)
|
if (c->mon == selmon)
|
||||||
unfocus(selmon->sel, 0, c);
|
unfocus(selmon->sel, 0, c);
|
||||||
c->mon->sel = c;
|
c->mon->sel = c;
|
||||||
#if BAR_WINTITLEACTIONS_PATCH
|
|
||||||
if (!HIDDEN(c))
|
|
||||||
XMapWindow(dpy, c->win);
|
|
||||||
#else
|
|
||||||
XMapWindow(dpy, c->win);
|
|
||||||
#endif // BAR_WINTITLEACTIONS_PATCH
|
|
||||||
#if SWALLOW_PATCH
|
#if SWALLOW_PATCH
|
||||||
if (!(term && swallow(term, c)))
|
if (!(term && swallow(term, c)))
|
||||||
arrange(c->mon);
|
arrange(c->mon);
|
||||||
#else
|
#else
|
||||||
arrange(c->mon);
|
arrange(c->mon);
|
||||||
#endif // SWALLOW_PATCH
|
#endif // SWALLOW_PATCH
|
||||||
|
#if BAR_WINTITLEACTIONS_PATCH
|
||||||
|
if (!HIDDEN(c))
|
||||||
|
XMapWindow(dpy, c->win);
|
||||||
|
#else
|
||||||
|
XMapWindow(dpy, c->win);
|
||||||
|
#endif // BAR_WINTITLEACTIONS_PATCH
|
||||||
focus(NULL);
|
focus(NULL);
|
||||||
|
|
||||||
#if BAR_EWMHTAGS_PATCH
|
#if BAR_EWMHTAGS_PATCH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user