Platform/Unix/X11SharedDisplay: adding getAtom()
This commit is contained in:
parent
f8188c4358
commit
d94c7fcf9a
2 changed files with 8 additions and 0 deletions
|
|
@ -29,4 +29,9 @@ void XReleaseDisplay() {
|
|||
}
|
||||
}
|
||||
|
||||
Atom getAtom(const std::string& name, bool onlyIfExists) {
|
||||
|
||||
return XInternAtom(sharedDisplay, name.c_str(), onlyIfExists);
|
||||
}
|
||||
|
||||
} // namespace sp
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue