fix cancelling closing windows.

This commit is contained in:
vaxerski 2021-12-21 11:32:15 +01:00
parent 03a343a9a6
commit 208792c299
1 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,9 @@ void KeybindManager::killactive(std::string args) {
event.data.data32[1] = 0;
xcb_send_event(g_pWindowManager->DisplayConnection, 0, PLASTWINDOW->getDrawable(), XCB_EVENT_MASK_NO_EVENT, (const char*)&event);
return; // Do not remove it yet. The user might've cancelled the operation or something. We will get
// an unmap event.
} else
xcb_kill_client(g_pWindowManager->DisplayConnection, g_pWindowManager->LastWindow);