aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/WinClient.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/WinClient.cc b/src/WinClient.cc
index 0370a1c..68700f1 100644
--- a/src/WinClient.cc
+++ b/src/WinClient.cc
@@ -314,7 +314,17 @@ void WinClient::updateTransientInfo() {
314 314
315 315
316void WinClient::updateTitle() { 316void WinClient::updateTitle() {
317 m_title = Xutil::getWMName(window()); 317 // why 512? very very long wmnames seem to either
318 // crash fluxbox or to make it have high cpuload
319 // see also:
320 // http://www.securityfocus.com/archive/1/382398/2004-11-24/2004-11-30/2
321 //
322 // TODO: - find out why this mostly happens when using xft-fonts
323 // - why other windowmanagers (pekwm/pwm3/openbox etc) are
324 // also influenced
325 //
326 // the limitation to 512 chars only avoids running in that trap
327 m_title = string(Xutil::getWMName(window()) ,0 , 512);
318} 328}
319 329
320void WinClient::updateIconTitle() { 330void WinClient::updateIconTitle() {