[download]

config/dwm/wmstate.patch

   1 diff --git a/dwm.c b/dwm.c
   2 index 664c527..ce3f126 100644
   3 --- a/dwm.c
   4 +++ b/dwm.c
   5 @@ -374,6 +374,11 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact)
   6  			*w = MIN(*w, c->maxw);
   7  		if (c->maxh)
   8  			*h = MIN(*h, c->maxh);
   9 +
  10 +		Atom prop = (c->isfloating || !c->mon->lt[c->mon->sellt]->arrange ?
  11 +		XInternAtom(dpy, "_NET_WM_STATE_ABOVE", False) : None);
  12 +		XChangeProperty(dpy, c->win, netatom[NetWMState],
  13 +		XA_ATOM, 32, PropModeReplace, (unsigned char*)&prop, True);
  14  	}
  15  	return *x != c->x || *y != c->y || *w != c->w || *h != c->h;
  16  }