socket2: emit kill event (hyprctl kill) (#13104)

This commit is contained in:
Harsh Narayan Jha 2026-03-05 01:30:00 +05:30 committed by GitHub
parent 10754745a9
commit 3f169ee5de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -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;

View file

@ -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;