summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c4
-rw-r--r--dwm.h2
-rw-r--r--event.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/client.c b/client.c
index 9f103c6..a02dda5 100644
--- a/client.c
+++ b/client.c
@@ -156,7 +156,7 @@ manage(Window w, XWindowAttributes *wa) {
156 c->w = c->tw = wa->width; 156 c->w = c->tw = wa->width;
157 c->h = wa->height; 157 c->h = wa->height;
158 c->th = bh; 158 c->th = bh;
159 updatesize(c); 159 updatesizehints(c);
160 if(c->x + c->w + 2 * BORDERPX > sw) 160 if(c->x + c->w + 2 * BORDERPX > sw)
161 c->x = sw - c->w - 2 * BORDERPX; 161 c->x = sw - c->w - 2 * BORDERPX;
162 if(c->x < sx) 162 if(c->x < sx)
@@ -256,7 +256,7 @@ resizetitle(Client *c) {
256} 256}
257 257
258void 258void
259updatesize(Client *c) { 259updatesizehints(Client *c) {
260 long msize; 260 long msize;
261 XSizeHints size; 261 XSizeHints size;
262 262
diff --git a/dwm.h b/dwm.h
index 85602f4..5d09d5b 100644
--- a/dwm.h
+++ b/dwm.h
@@ -117,7 +117,7 @@ extern void killclient(Arg *arg); /* kill c nicely */
117extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ 117extern void manage(Window w, XWindowAttributes *wa); /* manage new client */
118extern void resize(Client *c, Bool sizehints, Corner sticky); /* resize c*/ 118extern void resize(Client *c, Bool sizehints, Corner sticky); /* resize c*/
119extern void resizetitle(Client *c); /* resizes c->twin correctly */ 119extern void resizetitle(Client *c); /* resizes c->twin correctly */
120extern void updatesize(Client *c); /* update the size structs of c */ 120extern void updatesizehints(Client *c); /* update the size struct of c */
121extern void updatetitle(Client *c); /* update the name of c */ 121extern void updatetitle(Client *c); /* update the name of c */
122extern void unmanage(Client *c); /* destroy c */ 122extern void unmanage(Client *c); /* destroy c */
123 123
diff --git a/event.c b/event.c
index 72595b2..b23fd3f 100644
--- a/event.c
+++ b/event.c
@@ -314,7 +314,7 @@ propertynotify(XEvent *e) {
314 arrange(); 314 arrange();
315 break; 315 break;
316 case XA_WM_NORMAL_HINTS: 316 case XA_WM_NORMAL_HINTS:
317 updatesize(c); 317 updatesizehints(c);
318 break; 318 break;
319 } 319 }
320 if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { 320 if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {