From 9780f51558b83ee08bf9e6e6ce18ab953fabf9ee Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 30 Nov 2021 13:04:39 +1100 Subject: [PATCH] [client] x11: fix failure to set window position correctly when set --- client/displayservers/X11/x11.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index 30a0815fa..5099c9496 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -573,6 +573,9 @@ static bool x11Init(const LG_DSInitParams params) XMapWindow(x11.display, x11.window); XFlush(x11.display); + if (!params.center) + XMoveWindow(x11.display, x11.window, params.x, params.y); + XSetLocaleModifiers(""); // Load XMODIFIERS x11.xim = XOpenIM(x11.display, 0, 0, 0);