diff options
| author | Cyril Levis <cyrinux@users.noreply.github.com> | 2023-06-03 11:18:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-03 11:18:49 +0200 |
| commit | d7db7040d45a897adc598c3ba2e4b795f7e2a9b5 (patch) | |
| tree | 289dd774161f192d90aea3c6f5e3a78fc986c410 /src | |
| parent | 67be8d89b5be09feb77e698fbc3f09d48ab9433d (diff) | |
feat: add ipc set title window event (#2419)
* feat: add ipc set title window event
* chore: add EMIT_HOOK_EVENT and change event name
Diffstat (limited to 'src')
| -rw-r--r-- | src/events/Windows.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index b64bb193..f36a7116 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -805,6 +805,8 @@ void Events::listener_setTitleWindow(void* owner, void* data) { return; PWINDOW->m_szTitle = g_pXWaylandManager->getTitle(PWINDOW); + g_pEventManager->postEvent(SHyprIPCEvent{"windowtitle", getFormat("%lx", PWINDOW)}); + EMIT_HOOK_EVENT("windowTitle", PWINDOW); if (PWINDOW == g_pCompositor->m_pLastWindow) { // if it's the active, let's post an event to update others g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", g_pXWaylandManager->getAppIDClass(PWINDOW) + "," + PWINDOW->m_szTitle}); |
