mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-25 14:25:58 +01:00
fix cancelling closing windows.
This commit is contained in:
parent
03a343a9a6
commit
208792c299
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue