diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-02-04 15:22:20 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-02-04 15:30:00 +0100 |
commit | ff6126f44005388bbb2fc2fc2946891162abb3c0 (patch) | |
tree | ec496321189831bf0b62fb8f3613d878c3e89976 /nx-X11/programs/Xserver/randr/randr.c | |
parent | 1cd73ccb79a89428eb1723b711cb08cf9bc39068 (diff) | |
download | nx-libs-ff6126f44005388bbb2fc2fc2946891162abb3c0.tar.gz nx-libs-ff6126f44005388bbb2fc2fc2946891162abb3c0.tar.bz2 nx-libs-ff6126f44005388bbb2fc2fc2946891162abb3c0.zip |
Xserver/randr: Regression fix introduced by c2b1f48. Re-introduce RegisterResourceName() calls after each CreateNewResourceType() call.
Fixes ArcticaProject/nx-libs#309.
Diffstat (limited to 'nx-X11/programs/Xserver/randr/randr.c')
-rw-r--r-- | nx-X11/programs/Xserver/randr/randr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/randr/randr.c b/nx-X11/programs/Xserver/randr/randr.c index b29c3c888..e991af340 100644 --- a/nx-X11/programs/Xserver/randr/randr.c +++ b/nx-X11/programs/Xserver/randr/randr.c @@ -461,6 +461,11 @@ RRExtensionInit(void) ); if (!RRClientType) return; + +#ifdef NXAGENT_SERVER + RegisterResourceName(RRClientType, "RandRClient"); +#endif + RREventType = CreateNewResourceType(RRFreeEvents #ifndef NXAGENT_SERVER , "RandREvent" @@ -468,6 +473,11 @@ RRExtensionInit(void) ); if (!RREventType) return; + +#ifdef NXAGENT_SERVER + RegisterResourceName(RREventType, "RandREvent"); +#endif + extEntry = AddExtension(RANDR_NAME, RRNumberEvents, RRNumberErrors, ProcRRDispatch, SProcRRDispatch, NULL, StandardMinorOpcode); |