aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2014-10-23 21:13:38 -0400
committerKen Moore <ken@pcbsd.org>2014-10-23 21:13:38 -0400
commit7cd34701d1678087dd2b5a407bbc40f733d7f212 (patch)
tree2636e04cf2ee69d5bc7b8a21dc24d3e4f25de0ff /lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
parentAdd the auto-hide ability for the Lumina panels (and add a configuration opti... (diff)
downloadlumina-7cd34701d1678087dd2b5a407bbc40f733d7f212.tar.gz
lumina-7cd34701d1678087dd2b5a407bbc40f733d7f212.tar.bz2
lumina-7cd34701d1678087dd2b5a407bbc40f733d7f212.zip
Add a new menu plugin:
The "Window List" will show a menu of all the current windows, and activate the one that the user clicks on.
Diffstat (limited to 'lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp')
-rw-r--r--lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp b/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
index a605ae86..6ea7854e 100644
--- a/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
+++ b/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
@@ -80,7 +80,7 @@ void LTaskButton::UpdateButton(){
}
if(i==0 && !statusOnly){
//Update the button visuals from the first window
- this->setIcon(WINLIST[i].icon());
+ this->setIcon(WINLIST[i].icon(noicon));
cname = WINLIST[i].Class();
if(cname.isEmpty()){
//Special case (chrome/chromium does not register *any* information with X except window title)
@@ -88,6 +88,7 @@ void LTaskButton::UpdateButton(){
if(cname.contains(" - ")){ cname = cname.section(" - ",-1); }
}
this->setToolTip(cname);
+ /*
if(this->icon().isNull()){
this->setIcon( LXDG::findIcon(cname.toLower(),"") );
if(this->icon().isNull()){
@@ -98,9 +99,10 @@ void LTaskButton::UpdateButton(){
}
}else{
noicon = false;
- }
+ }*/
}
- QAction *tmp = winMenu->addAction( WINLIST[i].icon(), WINLIST[i].text() );
+ bool junk;
+ QAction *tmp = winMenu->addAction( WINLIST[i].icon(junk), WINLIST[i].text() );
tmp->setData(i); //save which number in the WINLIST this entry is for
Lumina::STATES stat = WINLIST[i].status();
if(stat==Lumina::NOTIFICATION){ showstate = stat; } //highest priority
bgstack15