mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 21:14:35 +00:00
Added caching of X11 NULL atom.
This commit is contained in:
parent
27c5760b0c
commit
98552f1d75
@ -139,7 +139,7 @@ static Atom writeTargetToProperty(const XSelectionRequestEvent* request)
|
|||||||
XChangeProperty(_glfw.x11.display,
|
XChangeProperty(_glfw.x11.display,
|
||||||
request->requestor,
|
request->requestor,
|
||||||
request->property,
|
request->property,
|
||||||
XInternAtom(_glfw.x11.display, "NULL", False),
|
_glfw.x11._NULL,
|
||||||
32,
|
32,
|
||||||
PropModeReplace,
|
PropModeReplace,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -524,6 +524,7 @@ static GLboolean initExtensions(void)
|
|||||||
detectEWMH();
|
detectEWMH();
|
||||||
|
|
||||||
// Find or create string format atoms
|
// Find or create string format atoms
|
||||||
|
_glfw.x11._NULL = XInternAtom(_glfw.x11.display, "NULL", False);
|
||||||
_glfw.x11.UTF8_STRING =
|
_glfw.x11.UTF8_STRING =
|
||||||
XInternAtom(_glfw.x11.display, "UTF8_STRING", False);
|
XInternAtom(_glfw.x11.display, "UTF8_STRING", False);
|
||||||
_glfw.x11.COMPOUND_STRING =
|
_glfw.x11.COMPOUND_STRING =
|
||||||
|
@ -136,6 +136,7 @@ typedef struct _GLFWlibraryX11
|
|||||||
Atom CLIPBOARD;
|
Atom CLIPBOARD;
|
||||||
Atom CLIPBOARD_MANAGER;
|
Atom CLIPBOARD_MANAGER;
|
||||||
Atom SAVE_TARGETS;
|
Atom SAVE_TARGETS;
|
||||||
|
Atom _NULL;
|
||||||
Atom UTF8_STRING;
|
Atom UTF8_STRING;
|
||||||
Atom COMPOUND_STRING;
|
Atom COMPOUND_STRING;
|
||||||
Atom ATOM_PAIR;
|
Atom ATOM_PAIR;
|
||||||
|
Loading…
Reference in New Issue
Block a user