From 208792c299d2f7b9b682354f0d35d4a2ec049f2e Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 21 Dec 2021 11:32:15 +0100 Subject: [PATCH] fix cancelling closing windows. --- src/KeybindManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/KeybindManager.cpp b/src/KeybindManager.cpp index 5056a8b..ea244df 100644 --- a/src/KeybindManager.cpp +++ b/src/KeybindManager.cpp @@ -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);