aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Display.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-02-09 23:35:00 +0000
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-03-17 09:40:37 +0100
commit9b934a44772ded19812ed4665265cc43fb751169 (patch)
tree073d055f62f93e29d3c4a6a7e284cca838ba0922 /nx-X11/programs/Xserver/hw/nxagent/Display.c
parent86110d6edadef2d9fbcd3ee0d008696bfcf7dcd4 (diff)
downloadnx-libs-9b934a44772ded19812ed4665265cc43fb751169.tar.gz
nx-libs-9b934a44772ded19812ed4665265cc43fb751169.tar.bz2
nx-libs-9b934a44772ded19812ed4665265cc43fb751169.zip
nxagent: Use SetNotifyFd to receive events.
Inspired by X.org commit: commit 55c2e1a3aa587c58a74066724e11e30b3df267b8 Author: Keith Packard <keithp@keithp.com> Date: Mon Dec 7 15:11:33 2015 -0800 xnest: Use SetNotifyFd to receive events Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Display.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Display.c b/nx-X11/programs/Xserver/hw/nxagent/Display.c
index 599b335f6..c683751f6 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Display.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c
@@ -2877,7 +2877,7 @@ void nxagentAddXConnection()
"to the device set.\n", nxagentXConnectionNumber);
#endif
- AddEnabledDevice(nxagentXConnectionNumber);
+ SetNotifyFd(XConnectionNumber(nxagentDisplay), nxagentNotifyConnection, X_NOTIFY_READ, NULL);
}
void nxagentRemoveXConnection()
@@ -2887,7 +2887,7 @@ void nxagentRemoveXConnection()
"from the device set.\n", nxagentXConnectionNumber);
#endif
- RemoveEnabledDevice(nxagentXConnectionNumber);
+ RemoveNotifyFd(nxagentXConnectionNumber);
}
/*