diff --git a/src/x11_window.c b/src/x11_window.c index c65d3d22..cc8ffd97 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -957,6 +957,17 @@ static void processEvent(XEvent *event) return; } + if (event->type == SelectionClear) + { + handleSelectionClear(event); + return; + } + else if (event->type == SelectionRequest) + { + handleSelectionRequest(event); + return; + } + window = findWindowByHandle(event->xany.window); if (window == NULL) { @@ -1476,18 +1487,6 @@ static void processEvent(XEvent *event) return; } - case SelectionClear: - { - handleSelectionClear(event); - return; - } - - case SelectionRequest: - { - handleSelectionRequest(event); - return; - } - case DestroyNotify: return; }