From e4823c69c27494cf206cc9b856303deb08740579 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 29 Jun 2017 15:01:06 -0400 Subject: Add a secondary window ID for all window destroy events. --- src-qt5/core/libLumina/NativeEventFilter.cpp | 1 + 1 file changed, 1 insertion(+) 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: -- cgit