Browse Source

added updatebarpos()

master
Anselm R Garbe 17 years ago
parent
commit
02673538bc
2 changed files with 12 additions and 8 deletions
  1. +1
    -4
      config.anselm.h
  2. +11
    -4
      dwm.c

+ 1
- 4
config.anselm.h View File

@ -72,10 +72,7 @@ setanselmgeoms(void) {
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


+ 11
- 4
dwm.c View File

@ -178,6 +178,7 @@ void toggleview(const char *arg);
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);
@ -1415,10 +1416,7 @@ setdefaultgeoms(void) {
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
@ -1742,6 +1740,15 @@ unmapnotify(XEvent *e) {
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;


Loading…
Cancel
Save