aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Init.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-02-15 23:50:03 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-05-07 14:57:21 +0200
commit067031a3b3036670ccc858be732264215a7d14ba (patch)
tree5d17e4181439bd05b415e600887154f979d906aa /nx-X11/programs/Xserver/hw/nxagent/Init.c
parent7835204928959c644ca3b8fdcc20390adc713f1e (diff)
downloadnx-libs-067031a3b3036670ccc858be732264215a7d14ba.tar.gz
nx-libs-067031a3b3036670ccc858be732264215a7d14ba.tar.bz2
nx-libs-067031a3b3036670ccc858be732264215a7d14ba.zip
nxagent: use Xorg's callback mechanism for init/free of client privates
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Init.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Init.c b/nx-X11/programs/Xserver/hw/nxagent/Init.c
index b4d8a270c..804c8c43b 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Init.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Init.c
@@ -54,6 +54,7 @@ is" without express or implied warranty.
#include "mi.h"
#include <X11/fonts/fontstruct.h>
#include "dixfontstr.h"
+#include "dixstruct.h"
#include "Agent.h"
#include "Display.h"
@@ -74,6 +75,7 @@ is" without express or implied warranty.
#include "Error.h"
#include "Keystroke.h"
#include "Atoms.h"
+#include "Client.h"
#include <nx/NX.h>
#include "compext/Compext.h"
@@ -386,9 +388,13 @@ FIXME: These variables, if not removed at all because have probably
nxagentInitKeystrokes(False);
#ifdef NXAGENT_CLIPBOARD
+ /* FIXME: we need to call DeleteCallback at shutdown, but where? */
AddCallback(&SelectionCallback, nxagentSetSelectionCallback, NULL);
#endif
+ /* FIXME: we need to call DeleteCallback at shutdown, but where? */
+ AddCallback(&ClientStateCallback, nxagentClientStateCallback, NULL);
+
nxagentInitAtoms();
}