aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-02-17 23:21:06 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-05-07 14:57:21 +0200
commitf38ecc6ffef14de748ea56ea2a5df32e04eb0e0d (patch)
tree44e8122f970a1f5a857aeaaba55a4054a6523239 /nx-X11/programs/Xserver
parenta94fef86c9ee72d646813f58bf947f7f245ebbca (diff)
downloadnx-libs-f38ecc6ffef14de748ea56ea2a5df32e04eb0e0d.tar.gz
nx-libs-f38ecc6ffef14de748ea56ea2a5df32e04eb0e0d.tar.bz2
nx-libs-f38ecc6ffef14de748ea56ea2a5df32e04eb0e0d.zip
dix/dispatch.c: fix buggy callback invocation
Looks like a copy'n'paste error.
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/dix/dispatch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/dix/dispatch.c b/nx-X11/programs/Xserver/dix/dispatch.c
index 6d0d61a15..57806f99d 100644
--- a/nx-X11/programs/Xserver/dix/dispatch.c
+++ b/nx-X11/programs/Xserver/dix/dispatch.c
@@ -3960,7 +3960,12 @@ DeleteClientFromAnySelections(ClientPtr client)
SelectionInfoRec info;
info.selection = &CurrentSelections[i];
+#ifdef NXAGENT_SERVER
+ /* bugfix missing in upstream before introduction of selection.c */
+ info.kind = SelectionClientClose;
+#else
info.kind = SelectionWindowDestroy;
+#endif
CallCallbacks(&SelectionCallback, &info);
}
CurrentSelections[i].pWin = (WindowPtr)NULL;