mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 15:45:59 +01:00
events: ignore setTitle when title didn't change
This commit is contained in:
parent
893c55217b
commit
3e67ee0f5f
1 changed files with 6 additions and 1 deletions
|
@ -901,7 +901,12 @@ void Events::listener_setTitleWindow(void* owner, void* data) {
|
||||||
if (!g_pCompositor->windowValidMapped(PWINDOW))
|
if (!g_pCompositor->windowValidMapped(PWINDOW))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
PWINDOW->m_szTitle = g_pXWaylandManager->getTitle(PWINDOW);
|
const auto NEWTITLE = g_pXWaylandManager->getTitle(PWINDOW);
|
||||||
|
|
||||||
|
if (NEWTITLE == PWINDOW->m_szTitle)
|
||||||
|
return;
|
||||||
|
|
||||||
|
PWINDOW->m_szTitle = NEWTITLE;
|
||||||
g_pEventManager->postEvent(SHyprIPCEvent{"windowtitle", std::format("{:x}", (uintptr_t)PWINDOW)});
|
g_pEventManager->postEvent(SHyprIPCEvent{"windowtitle", std::format("{:x}", (uintptr_t)PWINDOW)});
|
||||||
EMIT_HOOK_EVENT("windowTitle", PWINDOW);
|
EMIT_HOOK_EVENT("windowTitle", PWINDOW);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue