1
0

touch border

This commit is contained in:
Anselm R. Garbe 2007-04-19 08:53:40 +02:00
parent b078599833
commit ad2508f957

View File

@ -203,7 +203,7 @@ manage(Window w, XWindowAttributes *wa) {
XSelectInput(dpy, w, XSelectInput(dpy, w,
StructureNotifyMask | PropertyChangeMask | EnterWindowMask); StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
grabbuttons(c, False); grabbuttons(c, False);
c->border = wc.border_width = BORDERPX; c->border = wc.border_width = (c->w == sw && c->h == sh) ? wa->border_width : BORDERPX;
XConfigureWindow(dpy, w, CWBorderWidth, &wc); XConfigureWindow(dpy, w, CWBorderWidth, &wc);
XSetWindowBorder(dpy, w, dc.norm[ColBorder]); XSetWindowBorder(dpy, w, dc.norm[ColBorder]);
configure(c); /* propagates border_width, if size doesn't change */ configure(c); /* propagates border_width, if size doesn't change */