aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkt <markt>2007-03-29 21:56:50 (GMT)
committermarkt <markt>2007-03-29 21:56:50 (GMT)
commitaef362350332d80febe1a4b72ee9b4b962ed527b (patch)
treee5e637a57adc373a2f03335aee777bcbe90a0c83
parent2b83355eef4b473b586bd48cca5816598e0d2be2 (diff)
downloadfluxbox-aef362350332d80febe1a4b72ee9b4b962ed527b.zip
fluxbox-aef362350332d80febe1a4b72ee9b4b962ed527b.tar.bz2
use window title when icontitle isn't specified
-rw-r--r--src/WinClient.cc6
1 files 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 {
235} 235}
236 236
237const string &WinClient::title() const { 237const string &WinClient::title() const {
238 if (!fbwindow() || !fbwindow()->isIconic()) 238 if (!fbwindow() || !fbwindow()->isIconic() || m_icon_title.empty())
239 return m_title; 239 return m_title;
240 return m_icon_title; 240 return m_icon_title;
241} 241}
@@ -405,9 +405,9 @@ void WinClient::updateIconTitle() {
405 if (text_prop.value) 405 if (text_prop.value)
406 XFree((char *) text_prop.value); 406 XFree((char *) text_prop.value);
407 } else 407 } else
408 m_icon_title = title(); 408 m_icon_title = "";
409 } else 409 } else
410 m_icon_title = title(); 410 m_icon_title = "";
411 411
412 if (fbwindow() && fbwindow()->isIconic()) 412 if (fbwindow() && fbwindow()->isIconic())
413 fbwindow()->updateTitleFromClient(*this); 413 fbwindow()->updateTitleFromClient(*this);