mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
log destroy and unmap
This commit is contained in:
parent
ddcead1c84
commit
d128580902
1 changed files with 4 additions and 0 deletions
|
@ -131,6 +131,8 @@ void Events::eventDestroy(xcb_generic_event_t* event) {
|
|||
|
||||
RETURNIFBAR;
|
||||
|
||||
Debug::log(LOG, "Destroy called on " + std::to_string(E->window));
|
||||
|
||||
g_pWindowManager->closeWindowAllChecks(E->window);
|
||||
|
||||
// refocus on new window
|
||||
|
@ -149,6 +151,8 @@ void Events::eventUnmapWindow(xcb_generic_event_t* event) {
|
|||
|
||||
RETURNIFBAR;
|
||||
|
||||
Debug::log(LOG, "Unmap called on " + std::to_string(E->window));
|
||||
|
||||
const auto PCLOSEDWINDOW = g_pWindowManager->getWindowFromDrawable(E->window);
|
||||
|
||||
if (!PCLOSEDWINDOW)
|
||||
|
|
Loading…
Reference in a new issue