diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-27 09:37:10 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-27 09:37:10 -0400 |
commit | 6444a12d81b3a2539e9c86dc4fe2117fbe49489e (patch) | |
tree | 4cc744018402bcf9b793eeb7c28cb20c2d45c4f8 /src-qt5/core | |
parent | Some more debugging (diff) | |
download | lumina-6444a12d81b3a2539e9c86dc4fe2117fbe49489e.tar.gz lumina-6444a12d81b3a2539e9c86dc4fe2117fbe49489e.tar.bz2 lumina-6444a12d81b3a2539e9c86dc4fe2117fbe49489e.zip |
Fix a bug in the initialization routine of NativeEventFilter
Diffstat (limited to 'src-qt5/core')
-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(){ |