aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-06-29 15:01:06 -0400
committerKen Moore <ken@ixsystems.com>2017-06-29 15:01:06 -0400
commite4823c69c27494cf206cc9b856303deb08740579 (patch)
tree8eb8657be783c2cd8e6e3caef4cdcc64eb30d75b /src-qt5
parentadd some debugging for the new window routine (need window ID's) (diff)
downloadlumina-e4823c69c27494cf206cc9b856303deb08740579.tar.gz
lumina-e4823c69c27494cf206cc9b856303deb08740579.tar.bz2
lumina-e4823c69c27494cf206cc9b856303deb08740579.zip
Add a secondary window ID for all window destroy events.
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/libLumina/NativeEventFilter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/NativeEventFilter.cpp b/src-qt5/core/libLumina/NativeEventFilter.cpp
index 74402690..dba3146b 100644
--- a/src-qt5/core/libLumina/NativeEventFilter.cpp
+++ b/src-qt5/core/libLumina/NativeEventFilter.cpp
@@ -197,6 +197,7 @@ bool EventFilter::nativeEventFilter(const QByteArray &eventType, void *message,
case XCB_DESTROY_NOTIFY:
qDebug() << "Window Closed Event:" << ((xcb_destroy_notify_event_t *)ev)->window;
obj->emit WindowDestroyed( ((xcb_destroy_notify_event_t *) ev)->window );
+ obj->emit WindowDestroyed( ((xcb_destroy_notify_event_t *) ev)->event ); //sometimes this is the right window instead (window that sent the event)
break;
//==============================
case XCB_FOCUS_IN:
bgstack15