aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Atoms.h
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-12-28 21:02:14 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-01-05 22:52:53 +0100
commit427b7b9777727df4115e3e9e6e63d5176fb0b495 (patch)
tree1d319a61f55dd6132c17b5e7cb45b4585c3b6160 /nx-X11/programs/Xserver/hw/nxagent/Atoms.h
parenta261b72435d7d30dbe36529a51fc53f6ade34dff (diff)
downloadnx-libs-427b7b9777727df4115e3e9e6e63d5176fb0b495.tar.gz
nx-libs-427b7b9777727df4115e3e9e6e63d5176fb0b495.tar.bz2
nx-libs-427b7b9777727df4115e3e9e6e63d5176fb0b495.zip
nxagent: Use XlibAtom data type where appropriate
XlibAtom should be used wherever remote atoms are handled. This is important as Xlib data types and server data types of the same name do not always have identical sizes. See also https://lists.freedesktop.org/archives/xorg-devel/2015-August/047245.html
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Atoms.h')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Atoms.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Atoms.h b/nx-X11/programs/Xserver/hw/nxagent/Atoms.h
index cbbb7bd1d..f770c7e66 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Atoms.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Atoms.h
@@ -51,23 +51,33 @@ void nxagentInitAtoms();
int nxagentQueryAtoms(ScreenPtr pScreen);
+void nxagentResetAtomMap(void);
+
+void nxagentWMDetect(void);
+
+#ifdef XlibAtom
+
+/*
+ * only provide these protoypes if the including file knows about Xlib
+ * types. This allows us including Atoms.h without having to use the
+ * Xlib type magic of Agent.h
+ */
+
/*
* Create the atoms on the remote X server
* and cache the couple local-remote atoms.
*/
-Atom nxagentMakeAtom(char *, unsigned, Bool);
+XlibAtom nxagentMakeAtom(char *, unsigned, Bool);
/*
* Converts local atoms in remote atoms and
* viceversa.
*/
-Atom nxagentRemoteToLocalAtom(Atom);
-Atom nxagentLocalToRemoteAtom(Atom);
+Atom nxagentRemoteToLocalAtom(XlibAtom);
+XlibAtom nxagentLocalToRemoteAtom(Atom);
-void nxagentResetAtomMap(void);
-
-void nxagentWMDetect(void);
+#endif
#endif /* __Atoms_H__ */