From 33db9b21e250d5f35f89bc2523a83525b33d7075 Mon Sep 17 00:00:00 2001 From: mathias Date: Tue, 30 Nov 2004 22:42:56 +0000 Subject: "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. --- src/WinClient.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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() { void WinClient::updateTitle() { - m_title = Xutil::getWMName(window()); + // why 512? very very long wmnames seem to either + // crash fluxbox or to make it have high cpuload + // see also: + // http://www.securityfocus.com/archive/1/382398/2004-11-24/2004-11-30/2 + // + // TODO: - find out why this mostly happens when using xft-fonts + // - why other windowmanagers (pekwm/pwm3/openbox etc) are + // also influenced + // + // the limitation to 512 chars only avoids running in that trap + m_title = string(Xutil::getWMName(window()) ,0 , 512); } void WinClient::updateIconTitle() { -- cgit v0.11.2