mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-07 07:31:53 -07:00
events: ignore setTitle when title didn't change
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user