summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/event/EventBus.hpp1
-rw-r--r--src/managers/input/InputManager.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/event/EventBus.hpp b/src/event/EventBus.hpp
index 8f59acbd..60bd1511 100644
--- a/src/event/EventBus.hpp
+++ b/src/event/EventBus.hpp
@@ -41,6 +41,7 @@ namespace Event {
Event<PHLWINDOW> openEarly;
Event<PHLWINDOW> destroy;
Event<PHLWINDOW> close;
+ Event<PHLWINDOW> kill;
Event<PHLWINDOW, Desktop::eFocusReason> active;
Event<PHLWINDOW> urgent;
Event<PHLWINDOW> title;
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 64825633..9195536f 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -847,6 +847,9 @@ void CInputManager::processMouseDownKill(const IPointer::SButtonEvent& e) {
break;
}
+ g_pEventManager->postEvent(SHyprIPCEvent({.event = "kill", .data = std::format("{:x}", rc<uintptr_t>(PWINDOW.m_data))}));
+ Event::bus()->m_events.window.kill.emit(PWINDOW);
+
// kill the mf
kill(PWINDOW->getPID(), SIGKILL);
break;