From 3f6d8f3e8faca7dc060a9be51dbb9b76d2bdb9a5 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Thu, 17 May 2018 23:13:38 +0200 Subject: Update Xinerama on XMapEvent Fixes ArcticaProject/nx-libs#694 --- nx-X11/programs/Xserver/hw/nxagent/Events.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nx-X11/programs/Xserver/hw') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c index dee8dd7e0..0eca8e491 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Events.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c @@ -2041,6 +2041,18 @@ FIXME: Don't enqueue the KeyRelease event if the key was nxagentVisibilityTimeout = GetTimeInMillis() + 2000; } + /* + * without window manager there will be no ConfigureNotify + * event that would trigger xinerama updates. So we do that once + * the nxagent window gets mapped. + */ + if (nxagentWMIsRunning == 0 && + X.xmap.window == nxagentDefaultWindows[nxagentScreen(X.xmap.window)->myNum]) + { + nxagentChangeScreenConfig(nxagentScreen(X.xmap.window)->myNum, nxagentOption(Width), + nxagentOption(Height)); + } + break; } case MappingNotify: -- cgit v1.2.3