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); }