mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-25 14:25:58 +01:00
actually remove on unmap but only non-docks
This commit is contained in:
parent
09fbb1e41a
commit
b0dedddce9
1 changed files with 6 additions and 0 deletions
|
@ -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());
|
||||
|
||||
if (!PCLOSEDWINDOW->getDock())
|
||||
g_pWindowManager->closeWindowAllChecks(E->window);
|
||||
|
||||
// refocus on new window
|
||||
g_pWindowManager->refocusWindowOnClosed();
|
||||
|
||||
// EWMH
|
||||
EWMH::updateClientList();
|
||||
}
|
||||
|
||||
CWindow* Events::remapFloatingWindow(int windowID, int forcemonitor) {
|
||||
|
|
Loading…
Reference in a new issue