From 9e1808cd8b15596103cc6d4447740d0840d7d7f0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 25 Apr 2018 19:03:10 +0200 Subject: the less flicker the better --- src/core/stdmsg/src/msgdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 681f7f5d7b..391788b319 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -630,7 +630,7 @@ void CSrmmWindow::UpdateTitle() else mir_wstrncpy(newtitle, TranslateT("Message session"), _countof(newtitle)); wchar_t oldtitle[256]; - GetWindowText(m_hwnd, oldtitle, _countof(oldtitle)); + GetWindowText(m_pOwner->GetHwnd(), oldtitle, _countof(oldtitle)); if (mir_wstrcmp(newtitle, oldtitle)) { //swt() flickers even if the title hasn't actually changed SetWindowText(m_pOwner->GetHwnd(), newtitle); Resize(); -- cgit v1.2.3