aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LWinInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/LWinInfo.cpp')
-rw-r--r--lumina-desktop/LWinInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lumina-desktop/LWinInfo.cpp b/lumina-desktop/LWinInfo.cpp
index 93f589a4..3ff0c2d7 100644
--- a/lumina-desktop/LWinInfo.cpp
+++ b/lumina-desktop/LWinInfo.cpp
@@ -20,6 +20,8 @@ QString LWinInfo::text(){
if(nm.simplified().isEmpty()){ nm = LSession::handle()->XCB->WindowName(window); }
if(nm.simplified().isEmpty()){ nm = LSession::handle()->XCB->OldWindowIconName(window); }
if(nm.simplified().isEmpty()){ nm = LSession::handle()->XCB->OldWindowName(window); }
+ //Make sure that the text is a reasonable size (40 char limit)
+ if(nm.length()>40){ nm = nm.left(40)+"..."; }
return nm;
}
bgstack15