From f8ff87f669e4ac54c3ffe7e94c2b25af647a0742 Mon Sep 17 00:00:00 2001 From: speedie Date: Thu, 6 Jul 2023 04:02:23 +0200 Subject: [PATCH] Fix -b --- libs/x11/client.c | 2 +- libs/x11/init.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/x11/client.c b/libs/x11/client.c index a7586c3..ebb56bb 100644 --- a/libs/x11/client.c +++ b/libs/x11/client.c @@ -100,7 +100,7 @@ void resizeclient_x11(void) { y = (mo.output_height - sp.mh) / 2 - ypos; } else { // top or bottom x = 0; - y = menuposition ? 0 : mo.output_width - sp.mh - ypos; + y = menuposition ? 0 : mo.output_height - sp.mh - ypos; sp.mw = (menuwidth > 0 ? menuwidth : mo.output_width); } diff --git a/libs/x11/init.c b/libs/x11/init.c index a21fdf2..5cdc932 100644 --- a/libs/x11/init.c +++ b/libs/x11/init.c @@ -70,7 +70,7 @@ void setupdisplay_x11(void) { y = (mo.output_height - sp.mh) / 2 - ypos; } else { // top or bottom x = 0; - y = menuposition ? 0 : mo.output_width - sp.mh - ypos; + y = menuposition ? 0 : mo.output_height - sp.mh - ypos; sp.mw = (menuwidth > 0 ? menuwidth : mo.output_width); }