for new clients trigger arrange before XMapWindow to avoid visual glitches
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user