From cba652e4f343cf77c02caa85038d9884c8482909 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 25 Jul 2016 13:57:06 +0200 Subject: [PATCH] Cleanup --- src/x11_window.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/x11_window.c b/src/x11_window.c index de1f5f79..cc12c4de 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -102,6 +102,15 @@ static int getWindowState(_GLFWwindow* window) return result; } +// Returns whether the event is a selection event +// +static Bool isSelectionEvent(Display* display, XEvent* event, XPointer pointer) +{ + return event->type == SelectionRequest || + event->type == SelectionNotify || + event->type == SelectionClear; +} + // Returns whether the event is a selection event // static Bool isFrameExtentsEvent(Display* display, XEvent* event, XPointer pointer) @@ -611,15 +620,6 @@ static GLFWbool createWindow(_GLFWwindow* window, return GLFW_TRUE; } -// Returns whether the event is a selection event -// -static Bool isSelectionEvent(Display* display, XEvent* event, XPointer pointer) -{ - return event->type == SelectionRequest || - event->type == SelectionNotify || - event->type == SelectionClear; -} - // Set the specified property to the selection converted to the requested target // static Atom writeTargetToProperty(const XSelectionRequestEvent* request)