aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/libLumina')
-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