1
0
Fork 0

Platform/Unix/X11SharedDisplay: adding getAtom()

This commit is contained in:
Henrik Hautakoski 2019-12-26 07:48:53 +01:00
parent f8188c4358
commit d94c7fcf9a
2 changed files with 8 additions and 0 deletions

View file

@ -29,4 +29,9 @@ void XReleaseDisplay() {
}
}
Atom getAtom(const std::string& name, bool onlyIfExists) {
return XInternAtom(sharedDisplay, name.c_str(), onlyIfExists);
}
} // namespace sp

View file

@ -2,6 +2,7 @@
#ifndef SPECTRE_PLATFORM_UNIX_X11SHAREDDISPLAY_H
#define SPECTRE_PLATFORM_UNIX_X11SHAREDDISPLAY_H
#include <string>
#include <X11/Xlib.h>
namespace sp {
@ -10,6 +11,8 @@ namespace sp {
void XReleaseDisplay();
Atom getAtom(const std::string& name, bool onlyIfExists = false);
} // namespace sp
#endif /* SPECTRE_PLATFORM_UNIX_X11SHAREDDISPLAY_H */