aboutsummaryrefslogtreecommitdiff
path: root/src/WinClient.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WinClient.cc')
-rw-r--r--src/WinClient.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/WinClient.cc b/src/WinClient.cc
index 056013a..891dc26 100644
--- a/src/WinClient.cc
+++ b/src/WinClient.cc
@@ -69,6 +69,8 @@ WinClient::WinClient(Window win, BScreen &screen, FluxboxWindow *fbwin):FbTk::Fb
69 m_win_gravity(0), 69 m_win_gravity(0),
70 m_title(""), m_icon_title(""), 70 m_title(""), m_icon_title(""),
71 m_class_name(""), m_instance_name(""), 71 m_class_name(""), m_instance_name(""),
72 m_title_override(false),
73 m_icon_title_override(false),
72 m_blackbox_hint(0), 74 m_blackbox_hint(0),
73 m_mwm_hint(0), 75 m_mwm_hint(0),
74 m_focus_mode(F_PASSIVE), 76 m_focus_mode(F_PASSIVE),
@@ -342,10 +344,26 @@ void WinClient::updateTitle() {
342 // also influenced 344 // also influenced
343 // 345 //
344 // the limitation to 512 chars only avoids running in that trap 346 // the limitation to 512 chars only avoids running in that trap
347 if (m_title_override)
348 return;
349
345 m_title = string(Xutil::getWMName(window()), 0, 512); 350 m_title = string(Xutil::getWMName(window()), 0, 512);
346} 351}
347 352
353void WinClient::setTitle(FbTk::FbString &title) {
354 m_title = title;
355 m_title_override = true;
356}
357
358void WinClient::setIconTitle(FbTk::FbString &icon_title) {
359 m_icon_title = icon_title;
360 m_icon_title_override = true;
361}
362
348void WinClient::updateIconTitle() { 363void WinClient::updateIconTitle() {
364 if (m_icon_title_override)
365 return;
366
349 XTextProperty text_prop; 367 XTextProperty text_prop;
350 char **list = 0; 368 char **list = 0;
351 int num = 0; 369 int num = 0;