mirror of
https://github.com/glfw/glfw.git
synced 2024-11-13 02:01:49 +00:00
Formatting.
This commit is contained in:
parent
ae1532670c
commit
1b34887e10
@ -198,7 +198,7 @@ const char* _glfwPlatformGetClipboardString(_GLFWwindow* window)
|
|||||||
XConvertSelection(_glfw.x11.display,
|
XConvertSelection(_glfw.x11.display,
|
||||||
_glfw.x11.CLIPBOARD,
|
_glfw.x11.CLIPBOARD,
|
||||||
formats[i],
|
formats[i],
|
||||||
_glfw.x11.selection.property,
|
_glfw.x11.GLFW_SELECTION,
|
||||||
window->x11.handle, CurrentTime);
|
window->x11.handle, CurrentTime);
|
||||||
|
|
||||||
// XCheckTypedEvent is used instead of XIfEvent in order not to lock
|
// XCheckTypedEvent is used instead of XIfEvent in order not to lock
|
||||||
|
@ -539,7 +539,7 @@ static GLboolean initDisplay(void)
|
|||||||
XInternAtom(_glfw.x11.display, "COMPOUND_STRING", False);
|
XInternAtom(_glfw.x11.display, "COMPOUND_STRING", False);
|
||||||
|
|
||||||
// Find or create selection property atom
|
// Find or create selection property atom
|
||||||
_glfw.x11.selection.property =
|
_glfw.x11.GLFW_SELECTION =
|
||||||
XInternAtom(_glfw.x11.display, "GLFW_SELECTION", False);
|
XInternAtom(_glfw.x11.display, "GLFW_SELECTION", False);
|
||||||
|
|
||||||
// Find or create standard clipboard atoms
|
// Find or create standard clipboard atoms
|
||||||
|
@ -121,6 +121,7 @@ typedef struct _GLFWlibraryX11
|
|||||||
Atom CLIPBOARD;
|
Atom CLIPBOARD;
|
||||||
Atom UTF8_STRING;
|
Atom UTF8_STRING;
|
||||||
Atom COMPOUND_STRING;
|
Atom COMPOUND_STRING;
|
||||||
|
Atom GLFW_SELECTION;
|
||||||
|
|
||||||
// True if window manager supports EWMH
|
// True if window manager supports EWMH
|
||||||
GLboolean hasEWMH;
|
GLboolean hasEWMH;
|
||||||
@ -176,7 +177,6 @@ typedef struct _GLFWlibraryX11
|
|||||||
|
|
||||||
struct {
|
struct {
|
||||||
char* string;
|
char* string;
|
||||||
Atom property;
|
|
||||||
} selection;
|
} selection;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user