Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
7e59c89
)
renamed updatesize into updatesizehints (thx to Sander for this hint)
author
arg@mig29 <unknown>
Mon, 1 Jan 2007 18:10:31 +0000
(19:10 +0100)
committer
arg@mig29 <unknown>
Mon, 1 Jan 2007 18:10:31 +0000
(19:10 +0100)
client.c
patch
|
blob
|
history
dwm.h
patch
|
blob
|
history
event.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index
9f103c6
..
a02dda5
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-156,7
+156,7
@@
manage(Window w, XWindowAttributes *wa) {
c->w = c->tw = wa->width;
c->h = wa->height;
c->th = bh;
c->w = c->tw = wa->width;
c->h = wa->height;
c->th = bh;
- updatesize(c);
+ updatesize
hints
(c);
if(c->x + c->w + 2 * BORDERPX > sw)
c->x = sw - c->w - 2 * BORDERPX;
if(c->x < sx)
if(c->x + c->w + 2 * BORDERPX > sw)
c->x = sw - c->w - 2 * BORDERPX;
if(c->x < sx)
@@
-256,7
+256,7
@@
resizetitle(Client *c) {
}
void
}
void
-updatesize(Client *c) {
+updatesize
hints
(Client *c) {
long msize;
XSizeHints size;
long msize;
XSizeHints size;
diff --git
a/dwm.h
b/dwm.h
index
85602f4
..
5d09d5b
100644
(file)
--- a/
dwm.h
+++ b/
dwm.h
@@
-117,7
+117,7
@@
extern void killclient(Arg *arg); /* kill c nicely */
extern void manage(Window w, XWindowAttributes *wa); /* manage new client */
extern void resize(Client *c, Bool sizehints, Corner sticky); /* resize c*/
extern void resizetitle(Client *c); /* resizes c->twin correctly */
extern void manage(Window w, XWindowAttributes *wa); /* manage new client */
extern void resize(Client *c, Bool sizehints, Corner sticky); /* resize c*/
extern void resizetitle(Client *c); /* resizes c->twin correctly */
-extern void updatesize
(Client *c); /* update the size structs
of c */
+extern void updatesize
hints(Client *c); /* update the size struct
of c */
extern void updatetitle(Client *c); /* update the name of c */
extern void unmanage(Client *c); /* destroy c */
extern void updatetitle(Client *c); /* update the name of c */
extern void unmanage(Client *c); /* destroy c */
diff --git
a/event.c
b/event.c
index
72595b2
..
b23fd3f
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-314,7
+314,7
@@
propertynotify(XEvent *e) {
arrange();
break;
case XA_WM_NORMAL_HINTS:
arrange();
break;
case XA_WM_NORMAL_HINTS:
- updatesize(c);
+ updatesize
hints
(c);
break;
}
if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
break;
}
if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {