diff --git a/xwl/selection.cpp b/xwl/selection.cpp index cbcceed50a..51e817c17f 100644 --- a/xwl/selection.cpp +++ b/xwl/selection.cpp @@ -127,25 +127,13 @@ bool Selection::filterEvent(xcb_generic_event_t *event) { switch (event->response_type & XCB_EVENT_RESPONSE_TYPE_MASK) { case XCB_SELECTION_NOTIFY: - if (handleSelectionNotify(reinterpret_cast(event))) { - return true; - } - Q_FALLTHROUGH(); + return handleSelectionNotify(reinterpret_cast(event)); case XCB_PROPERTY_NOTIFY: - if (handlePropertyNotify(reinterpret_cast(event))) { - return true; - } - Q_FALLTHROUGH(); + return handlePropertyNotify(reinterpret_cast(event)); case XCB_SELECTION_REQUEST: - if (handleSelectionRequest(reinterpret_cast(event))) { - return true; - } - Q_FALLTHROUGH(); + return handleSelectionRequest(reinterpret_cast(event)); case XCB_CLIENT_MESSAGE: - if (handleClientMessage(reinterpret_cast(event))) { - return true; - } - Q_FALLTHROUGH(); + return handleClientMessage(reinterpret_cast(event)); default: return false; }