From ba5183f80836042ce90be7dde29cc2c5f13baf9d Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Thu, 23 Mar 2017 23:11:32 +0100 Subject: Init keystrokes at startup and reconnect no more late initialization --- nx-X11/programs/Xserver/hw/nxagent/Reconnect.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nx-X11/programs/Xserver/hw/nxagent/Reconnect.c') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c index ee21bff69..fb2303549 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c @@ -52,6 +52,7 @@ #include "Millis.h" #include "Splash.h" #include "Error.h" +#include "Keystroke.h" #ifdef XKB #include "XKBsrv.h" @@ -646,6 +647,10 @@ Bool nxagentReconnectSession(void) goto nxagentReconnectError; } + /* Re-read keystrokes definitions in case the keystrokes file has + changed while being supended */ + nxagentInitKeystrokes(True); + #ifdef NX_DEBUG_INPUT fprintf(stderr, "Session: Session resumed at '%s' timestamp [%lu].\n", GetTimeAsString(), GetTimeInMillis()); #else -- cgit v1.2.3