diff options
author | terminaldweller <thabogre@gmail.com> | 2022-04-22 06:37:34 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-04-22 06:37:34 +0000 |
commit | 5647f7edcfeaad0ca2213f6ecaec65b2b9cf4637 (patch) | |
tree | 0b6df4118c62ee96e75fc414881e76e53b1dff33 /dmenu-center-4.8.diff | |
parent | update (diff) | |
download | dmenu-5647f7edcfeaad0ca2213f6ecaec65b2b9cf4637.tar.gz dmenu-5647f7edcfeaad0ca2213f6ecaec65b2b9cf4637.zip |
remove center patch, it doesnt have a switch
Diffstat (limited to '')
-rw-r--r-- | dmenu-center-4.8.diff | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/dmenu-center-4.8.diff b/dmenu-center-4.8.diff deleted file mode 100644 index 5878a33..0000000 --- a/dmenu-center-4.8.diff +++ /dev/null @@ -1,19 +0,0 @@ -diff --git a/dmenu.c b/dmenu.c -index 5e9c367..2268ea9 100644 ---- a/dmenu.c -+++ b/dmenu.c -@@ -634,11 +644,10 @@ setup(void) - if (!XGetWindowAttributes(dpy, parentwin, &wa)) - die("could not get embedding window attributes: 0x%lx", - parentwin); -- x = 0; -- y = topbar ? 0 : wa.height - mh; -- mw = wa.width; -+ mw = MIN(MAX(max_textw() + promptw, 100), wa.width); -+ x = (wa.width - mw) / 2; -+ y = (wa.height - mh) / 2; - } -- promptw = (prompt && *prompt) ? TEXTW(prompt) - lrpad / 4 : 0; - inputw = MIN(inputw, mw/3); - match(); - |