aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LWinInfo.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-02-19 11:52:42 -0500
committerKen Moore <moorekou@gmail.com>2016-02-19 11:52:42 -0500
commit317a32eb55d2c5984c9246c774035e36af4015e4 (patch)
tree02ae894ef26172e35404dd9ad291c77cb48fc6ad /lumina-desktop/LWinInfo.cpp
parentChange around the X property notification requested for standard windows (non... (diff)
downloadlumina-317a32eb55d2c5984c9246c774035e36af4015e4.tar.gz
lumina-317a32eb55d2c5984c9246c774035e36af4015e4.tar.bz2
lumina-317a32eb55d2c5984c9246c774035e36af4015e4.zip
Fix up a couple other small bugs:
1) Ensure the clock plugin does not resize smaller than the time display. 2) Enforce a 40 character limit for task manager button text.
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