aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2021-06-20 13:15:12 +0200
committerUlrich Sibiller <uli42@gmx.de>2021-07-05 22:18:24 +0200
commit5da2be394a3961c7a6d96a3e117ffc434fe34827 (patch)
tree45e71e9d37f6e4e6b6a992bfdc45cbe58cb7fce0
parent7aa969cd4ee5fe6ecf74f82442e4a0a7491191c1 (diff)
downloadnx-libs-5da2be394a3961c7a6d96a3e117ffc434fe34827.tar.gz
nx-libs-5da2be394a3961c7a6d96a3e117ffc434fe34827.tar.bz2
nx-libs-5da2be394a3961c7a6d96a3e117ffc434fe34827.zip
Events.c: add another comment
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Events.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c
index a678e3841..0340e0b57 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Events.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c
@@ -2881,6 +2881,11 @@ int nxagentHandleXFixesSelectionNotify(XEvent *X)
return 0;
}
+ /*
+ * Realistically the only situation where we can receive
+ * WindowDestroy or ClientClose will also end nxagent, so we do not
+ * need to handle them. But the code is here, so let's keep it.
+ */
if (xfixesEvent -> xfixesselection.subtype == SelectionSetOwner||
xfixesEvent -> xfixesselection.subtype == SelectionWindowDestroy ||
xfixesEvent -> xfixesselection.subtype == SelectionClientClose)