mirror of git://git.suckless.org/dwm
added updatebarpos()
This commit is contained in:
parent
95eae7b9d2
commit
02673538bc
|
@ -72,10 +72,7 @@ setanselmgeoms(void) {
|
||||||
mow = mw;
|
mow = mw;
|
||||||
moh = mh;
|
moh = mh;
|
||||||
|
|
||||||
if(dc.drawable != 0)
|
updatebarpos();
|
||||||
XFreePixmap(dpy, dc.drawable);
|
|
||||||
dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen));
|
|
||||||
XMoveResizeWindow(dpy, barwin, bx, by, bw, bh);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
15
dwm.c
15
dwm.c
|
@ -178,6 +178,7 @@ void toggleview(const char *arg);
|
||||||
void unban(Client *c);
|
void unban(Client *c);
|
||||||
void unmanage(Client *c);
|
void unmanage(Client *c);
|
||||||
void unmapnotify(XEvent *e);
|
void unmapnotify(XEvent *e);
|
||||||
|
void updatebarpos(void);
|
||||||
void updatesizehints(Client *c);
|
void updatesizehints(Client *c);
|
||||||
void updatetitle(Client *c);
|
void updatetitle(Client *c);
|
||||||
void updatewmhints(Client *c);
|
void updatewmhints(Client *c);
|
||||||
|
@ -1415,10 +1416,7 @@ setdefaultgeoms(void) {
|
||||||
mow = ww;
|
mow = ww;
|
||||||
moh = wh;
|
moh = wh;
|
||||||
|
|
||||||
if(dc.drawable != 0)
|
updatebarpos();
|
||||||
XFreePixmap(dpy, dc.drawable);
|
|
||||||
dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen));
|
|
||||||
XMoveResizeWindow(dpy, barwin, bx, by, bw, bh);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
void
|
||||||
updatesizehints(Client *c) {
|
updatesizehints(Client *c) {
|
||||||
long msize;
|
long msize;
|
||||||
|
|
Loading…
Reference in New Issue