diff options
author | Ken Moore <ken@pcbsd.org> | 2015-03-15 19:13:29 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-03-15 19:13:29 -0400 |
commit | e03f0f89495b076804435c100a1458a0a0092a55 (patch) | |
tree | 132a39fe304aa65f87b02bdaba5dab521ba70611 /lumina-desktop/LWinInfo.cpp | |
parent | Add the ability to increase/decrease the icon size for the applauncher deskto... (diff) | |
download | lumina-e03f0f89495b076804435c100a1458a0a0092a55.tar.gz lumina-e03f0f89495b076804435c100a1458a0a0092a55.tar.bz2 lumina-e03f0f89495b076804435c100a1458a0a0092a55.zip |
Add support for the older WM_NAME and WM_ICON_NAME standards in addition to the EWMH standards (_NET_WM_NAME, etc..)
Diffstat (limited to 'lumina-desktop/LWinInfo.cpp')
-rw-r--r-- | lumina-desktop/LWinInfo.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lumina-desktop/LWinInfo.cpp b/lumina-desktop/LWinInfo.cpp index 4ea91c1f..b1476c4e 100644 --- a/lumina-desktop/LWinInfo.cpp +++ b/lumina-desktop/LWinInfo.cpp @@ -15,9 +15,11 @@ QString LWinInfo::text(){ if(window==0){ return ""; } QString nm = LSession::handle()->XCB->WindowVisibleIconName(window); - if(nm.isEmpty()){ nm = LSession::handle()->XCB->WindowIconName(window); } - if(nm.isEmpty()){ nm = LSession::handle()->XCB->WindowVisibleName(window); } - if(nm.isEmpty()){ nm = LSession::handle()->XCB->WindowName(window); } + if(nm.simplified().isEmpty()){ nm = LSession::handle()->XCB->WindowIconName(window); } + if(nm.simplified().isEmpty()){ nm = LSession::handle()->XCB->WindowVisibleName(window); } + 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); } return nm; } |