mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 07:05:58 +01:00
socket2: Add windowtitlev2 event which includes the window address (#6856)
Fixes #5393
This commit is contained in:
parent
a770a88e09
commit
45c4898423
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue