log destroy and unmap

This commit is contained in:
vaxerski 2022-03-08 21:26:02 +01:00
parent ddcead1c84
commit d128580902

View file

@ -131,6 +131,8 @@ void Events::eventDestroy(xcb_generic_event_t* event) {
RETURNIFBAR; RETURNIFBAR;
Debug::log(LOG, "Destroy called on " + std::to_string(E->window));
g_pWindowManager->closeWindowAllChecks(E->window); g_pWindowManager->closeWindowAllChecks(E->window);
// refocus on new window // refocus on new window
@ -149,6 +151,8 @@ void Events::eventUnmapWindow(xcb_generic_event_t* event) {
RETURNIFBAR; RETURNIFBAR;
Debug::log(LOG, "Unmap called on " + std::to_string(E->window));
const auto PCLOSEDWINDOW = g_pWindowManager->getWindowFromDrawable(E->window); const auto PCLOSEDWINDOW = g_pWindowManager->getWindowFromDrawable(E->window);
if (!PCLOSEDWINDOW) if (!PCLOSEDWINDOW)