diff options
| author | Tim Waterhouse <tim@timwaterhouse.com> | 2024-07-13 07:21:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-13 16:21:32 +0200 |
| commit | 45c48984236d7a682a1941b147f8ae489ac9a1e6 (patch) | |
| tree | 399ec2bbb9ddcdb34bdfac0642fa7588dee0505e /src/desktop/Window.cpp | |
| parent | a770a88e0962f37c0b6f36f1876cbf27db4cf3c9 (diff) | |
socket2: Add windowtitlev2 event which includes the window address (#6856)
Fixes #5393
Diffstat (limited to 'src/desktop/Window.cpp')
| -rw-r--r-- | src/desktop/Window.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 2dc5846b..4ea34156 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -1343,6 +1343,7 @@ void CWindow::onUpdateMeta() { if (m_szTitle != NEWTITLE) { m_szTitle = NEWTITLE; g_pEventManager->postEvent(SHyprIPCEvent{"windowtitle", std::format("{:x}", (uintptr_t)this)}); + g_pEventManager->postEvent(SHyprIPCEvent{"windowtitlev2", std::format("{:x},{}", (uintptr_t)this, m_szTitle)}); EMIT_HOOK_EVENT("windowTitle", m_pSelf.lock()); if (m_pSelf == g_pCompositor->m_pLastWindow) { // if it's the active, let's post an event to update others |
