From 82e4dbc48e982a262bbf4fa41f83ee2737e2b6bc Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 19 May 2015 21:19:49 +0200 Subject: [PATCH] Use the xcb definition for the primary selection atom. --- src/frontends/qt4/GuiApplication.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index ff19ce2380..f03776caca 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -123,9 +123,6 @@ #undef None #elif defined(QPA_XCB) #include -#include -#include -#undef None #endif #if (QT_VERSION < 0x050000) || (QT_VERSION >= 0x050400) @@ -3067,7 +3064,7 @@ bool GuiApplication::nativeEventFilter(const QByteArray & eventType, case XCB_SELECTION_REQUEST: { xcb_selection_request_event_t * srev = reinterpret_cast(ev); - if (srev->selection != XA_PRIMARY) + if (srev->selection != XCB_ATOM_PRIMARY) break; LYXERR(Debug::SELECTION, "X requested selection."); BufferView * bv = current_view_->currentBufferView(); @@ -3081,7 +3078,7 @@ bool GuiApplication::nativeEventFilter(const QByteArray & eventType, case XCB_SELECTION_CLEAR: { xcb_selection_clear_event_t * scev = reinterpret_cast(ev); - if (scev->selection != XA_PRIMARY) + if (scev->selection != XCB_ATOM_PRIMARY) break; LYXERR(Debug::SELECTION, "Lost selection."); BufferView * bv = current_view_->currentBufferView(); -- 2.39.5