diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2018-05-17 23:13:38 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-05-24 09:58:49 +0200 |
commit | 3f6d8f3e8faca7dc060a9be51dbb9b76d2bdb9a5 (patch) | |
tree | a603c8faacbcbe3d2f9cb032b8b10107297a72e4 /nx-X11 | |
parent | c0f67abb494b6d61dc4a67284004072570b3c5e7 (diff) | |
download | nx-libs-3f6d8f3e8faca7dc060a9be51dbb9b76d2bdb9a5.tar.gz nx-libs-3f6d8f3e8faca7dc060a9be51dbb9b76d2bdb9a5.tar.bz2 nx-libs-3f6d8f3e8faca7dc060a9be51dbb9b76d2bdb9a5.zip |
Update Xinerama on XMapEvent
Fixes ArcticaProject/nx-libs#694
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Events.c | 12 |
1 files changed, 12 insertions, 0 deletions
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: |