From aef362350332d80febe1a4b72ee9b4b962ed527b Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 29 Mar 2007 21:56:50 +0000 Subject: use window title when icontitle isn't specified --- src/WinClient.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/WinClient.cc b/src/WinClient.cc index 3c20912..7e79dea 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc @@ -235,7 +235,7 @@ const string &WinClient::getWMClassClass() const { } const string &WinClient::title() const { - if (!fbwindow() || !fbwindow()->isIconic()) + if (!fbwindow() || !fbwindow()->isIconic() || m_icon_title.empty()) return m_title; return m_icon_title; } @@ -405,9 +405,9 @@ void WinClient::updateIconTitle() { if (text_prop.value) XFree((char *) text_prop.value); } else - m_icon_title = title(); + m_icon_title = ""; } else - m_icon_title = title(); + m_icon_title = ""; if (fbwindow() && fbwindow()->isIconic()) fbwindow()->updateTitleFromClient(*this); -- cgit v0.11.2