diff options
-rw-r--r-- | src/WinClient.cc | 6 |
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 | ||
237 | const string &WinClient::title() const { | 237 | const 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); |