actually remove on unmap but only non-docks

This commit is contained in:
vaxerski 2022-03-10 13:06:20 +01:00
parent 09fbb1e41a
commit b0dedddce9

View file

@ -160,8 +160,14 @@ void Events::eventUnmapWindow(xcb_generic_event_t* event) {
Debug::log(LOG, "Unmap called on " + std::to_string(E->window) + " -> " + PCLOSEDWINDOW->getName()); Debug::log(LOG, "Unmap called on " + std::to_string(E->window) + " -> " + PCLOSEDWINDOW->getName());
if (!PCLOSEDWINDOW->getDock())
g_pWindowManager->closeWindowAllChecks(E->window);
// refocus on new window // refocus on new window
g_pWindowManager->refocusWindowOnClosed(); g_pWindowManager->refocusWindowOnClosed();
// EWMH
EWMH::updateClientList();
} }
CWindow* Events::remapFloatingWindow(int windowID, int forcemonitor) { CWindow* Events::remapFloatingWindow(int windowID, int forcemonitor) {