diff options
author | mathias <mathias> | 2004-11-30 22:42:56 (GMT) |
---|---|---|
committer | mathias <mathias> | 2004-11-30 22:42:56 (GMT) |
commit | 33db9b21e250d5f35f89bc2523a83525b33d7075 (patch) | |
tree | 7361b30eda69d15ba7f6b3fbb13929e8a0ce0144 /src | |
parent | b7eb3dbc933fbdc03a15bd5d5bd3793894b48fec (diff) | |
download | fluxbox_lack-33db9b21e250d5f35f89bc2523a83525b33d7075.zip fluxbox_lack-33db9b21e250d5f35f89bc2523a83525b33d7075.tar.bz2 |
"fixes" http://www.securityfocus.com/archive/1/382398/2004-11-24/2004-11-30/2
and all related bugreports elsewhere. "fixes" because i think the real problem
is in xft somewhere somehow, but i dont have any prove (yet).
thanx to Rob Stevens for informing us about that problem.
Diffstat (limited to 'src')
-rw-r--r-- | src/WinClient.cc | 12 |
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 | ||
316 | void WinClient::updateTitle() { | 316 | void 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 | ||
320 | void WinClient::updateIconTitle() { | 330 | void WinClient::updateIconTitle() { |