Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added a new comment
[dwm.git]
/
dwm.c
diff --git
a/dwm.c
b/dwm.c
index
a9edae3
..
6d3cf80
100644
(file)
--- a/
dwm.c
+++ b/
dwm.c
@@
-96,7
+96,8
@@
typedef struct {
const char *symbol;
void (*arrange)(void);
Bool isfloating;
const char *symbol;
void (*arrange)(void);
Bool isfloating;
-} Layout;
+} Layout; /* TODO: layout should keep an auxilliary pointer to its Geometry,
+ instead of having all those layout specific vars globally */
typedef struct {
const char *prop;
typedef struct {
const char *prop;
@@
-178,6
+179,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);
@@
-407,6
+409,7
@@
configurenotify(XEvent *e) {
if(ev->window == root && (ev->width != sw || ev->height != sh)) {
setgeoms();
if(ev->window == root && (ev->width != sw || ev->height != sh)) {
setgeoms();
+ updatebarpos();
arrange();
}
}
arrange();
}
}
@@
-1414,11
+1417,6
@@
setdefaultgeoms(void) {
moy = wy;
mow = ww;
moh = wh;
moy = wy;
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);
}
void
}
void
@@
-1743,6
+1741,15
@@
unmapnotify(XEvent *e) {
}
void
}
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;
XSizeHints size;
updatesizehints(Client *c) {
long msize;
XSizeHints size;