mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-18 05:05:48 +02: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)
|
||||
unfocus(selmon->sel, 0, 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 (!(term && swallow(term, c)))
|
||||
arrange(c->mon);
|
||||
#else
|
||||
arrange(c->mon);
|
||||
#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);
|
||||
|
||||
#if BAR_EWMHTAGS_PATCH
|
||||
|
Loading…
Reference in New Issue
Block a user