summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.anselm.h4
-rw-r--r--dwm.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/config.anselm.h b/config.anselm.h
index 77af948..aef5947 100644
--- a/config.anselm.h
+++ b/config.anselm.h
@@ -71,14 +71,13 @@ setanselmgeoms(void) {
71 moy = my; 71 moy = my;
72 mow = mw; 72 mow = mw;
73 moh = mh; 73 moh = mh;
74
75 updatebarpos();
76} 74}
77 75
78void 76void
79anselmgeoms(const char *arg) { 77anselmgeoms(const char *arg) {
80 setgeoms = setanselmgeoms; 78 setgeoms = setanselmgeoms;
81 setgeoms(); 79 setgeoms();
80 updatebarpos();
82 setlayout("[]|"); 81 setlayout("[]|");
83} 82}
84 83
@@ -86,6 +85,7 @@ void
86defgeoms(const char *arg) { 85defgeoms(const char *arg) {
87 setgeoms = setdefaultgeoms; 86 setgeoms = setdefaultgeoms;
88 setgeoms(); 87 setgeoms();
88 updatebarpos();
89 setlayout("[]="); 89 setlayout("[]=");
90} 90}
91 91
diff --git a/dwm.c b/dwm.c
index 4d26a82..51d270e 100644
--- a/dwm.c
+++ b/dwm.c
@@ -408,6 +408,7 @@ configurenotify(XEvent *e) {
408 408
409 if(ev->window == root && (ev->width != sw || ev->height != sh)) { 409 if(ev->window == root && (ev->width != sw || ev->height != sh)) {
410 setgeoms(); 410 setgeoms();
411 updatebarpos();
411 arrange(); 412 arrange();
412 } 413 }
413} 414}
@@ -1415,8 +1416,6 @@ setdefaultgeoms(void) {
1415 moy = wy; 1416 moy = wy;
1416 mow = ww; 1417 mow = ww;
1417 moh = wh; 1418 moh = wh;
1418
1419 updatebarpos();
1420} 1419}
1421 1420
1422void 1421void