summaryrefslogtreecommitdiff
path: root/pinentry-dmenu.c
diff options
context:
space:
mode:
authorMoritz Luedecke <ritze@skweez.net>2017-09-15 00:39:22 +0200
committerMoritz Luedecke <ritze@skweez.net>2017-09-15 00:39:22 +0200
commit9e8572af7eb9640a8bb690adf9ca2ecfa6992644 (patch)
treee542af1e728a446027730f6a30b7e40074a4c27d /pinentry-dmenu.c
parent84a7f88da195e4859839638a3eaba68a64cf732d (diff)
Move all config variables into config.h and rename topbar to buttom
Diffstat (limited to 'pinentry-dmenu.c')
-rw-r--r--pinentry-dmenu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c
index 8538878..5bd0e1f 100644
--- a/pinentry-dmenu.c
+++ b/pinentry-dmenu.c
@@ -45,7 +45,7 @@ static int promptw, ppromptw, pdescw;
/* Sum of left and right padding */
static int lrpad;
static size_t cursor;
-static int mon = -1, screen;
+static int screen;
static char* pin;
@@ -299,7 +299,7 @@ setup(void) {
}
x = info[i].x_org;
- y = info[i].y_org + (topbar ? 0 : info[i].height - mh);
+ y = info[i].y_org + (bottom ? info[i].height - mh : 0);
mw = info[i].width;
XFree(info);
} else
@@ -309,7 +309,7 @@ setup(void) {
die("could not get embedding window attributes: 0x%lx", parentwin);
}
x = 0;
- y = topbar ? 0 : wa.height - mh;
+ y = bottom ? wa.height - mh : 0;
mw = wa.width;
}
@@ -658,7 +658,7 @@ main(int argc, char *argv[]) {
asterisk = str;
}
if (config_lookup_bool(&cfg, "buttom", &bval)) {
- topbar = !bval;
+ bottom = bval;
}
if (config_lookup_int(&cfg, "min_password_length", &val)) {
minpwlen = val;