diff options
Diffstat (limited to 'src-qt5/core/libLumina')
-rw-r--r-- | src-qt5/core/libLumina/NativeEventFilter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/NativeEventFilter.cpp b/src-qt5/core/libLumina/NativeEventFilter.cpp index cc73e222..537d54aa 100644 --- a/src-qt5/core/libLumina/NativeEventFilter.cpp +++ b/src-qt5/core/libLumina/NativeEventFilter.cpp @@ -58,7 +58,7 @@ XCB_CLIENT_MESSAGE #define DEBUG 0 //Special objects/variables for XCB parsing -static LXCB *XCB = new LXCB(); +static LXCB *XCB = 0; static xcb_atom_t _NET_SYSTEM_TRAY_OPCODE = 0; inline void ParsePropertyEvent(xcb_property_notify_event_t *ev, NativeEventFilter *obj){ @@ -90,6 +90,7 @@ NativeEventFilter::NativeEventFilter() : QObject(){ free(r); } } + if(XCB==0){ XCB = new LXCB(); } } void NativeEventFilter::start(){ |