Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
95eae7b
)
added updatebarpos()
author
Anselm R Garbe <
[email protected]
>
Thu, 13 Mar 2008 10:19:05 +0000
(10:19 +0000)
committer
Anselm R Garbe <
[email protected]
>
Thu, 13 Mar 2008 10:19:05 +0000
(10:19 +0000)
config.anselm.h
diff
|
blob
|
history
dwm.c
diff
|
blob
|
history
diff --git
a/config.anselm.h
b/config.anselm.h
index
0e0d3be
..
f546941
100644
(file)
--- a/
config.anselm.h
+++ b/
config.anselm.h
@@
-72,10
+72,7
@@
setanselmgeoms(void) {
mow = mw;
moh = mh;
mow = mw;
moh = mh;
- if(dc.drawable != 0)
- XFreePixmap(dpy, dc.drawable);
- dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen));
- XMoveResizeWindow(dpy, barwin, bx, by, bw, bh);
+ updatebarpos();
}
void
}
void
diff --git
a/dwm.c
b/dwm.c
index
a9edae3
..
4d26a82
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-178,6
+178,7
@@
void toggleview(const char *arg);
void unban(Client *c);
void unmanage(Client *c);
void unmapnotify(XEvent *e);
void unban(Client *c);
void unmanage(Client *c);
void unmapnotify(XEvent *e);
+void updatebarpos(void);
void updatesizehints(Client *c);
void updatetitle(Client *c);
void updatewmhints(Client *c);
void updatesizehints(Client *c);
void updatetitle(Client *c);
void updatewmhints(Client *c);
@@
-1415,10
+1416,7
@@
setdefaultgeoms(void) {
mow = ww;
moh = wh;
mow = ww;
moh = wh;
- if(dc.drawable != 0)
- XFreePixmap(dpy, dc.drawable);
- dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen));
- XMoveResizeWindow(dpy, barwin, bx, by, bw, bh);
+ updatebarpos();
}
void
}
void
@@
-1742,6
+1740,15
@@
unmapnotify(XEvent *e) {
unmanage(c);
}
unmanage(c);
}
+void
+updatebarpos(void) {
+
+ if(dc.drawable != 0)
+ XFreePixmap(dpy, dc.drawable);
+ dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen));
+ XMoveResizeWindow(dpy, barwin, bx, by, bw, bh);
+}
+
void
updatesizehints(Client *c) {
long msize;
void
updatesizehints(Client *c) {
long msize;