aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/systemtray
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/panel-plugins/systemtray')
-rw-r--r--lumina-desktop/panel-plugins/systemtray/LSysTray.cpp6
-rw-r--r--lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp10
2 files changed, 8 insertions, 8 deletions
diff --git a/lumina-desktop/panel-plugins/systemtray/LSysTray.cpp b/lumina-desktop/panel-plugins/systemtray/LSysTray.cpp
index 2befba0d..3be31f43 100644
--- a/lumina-desktop/panel-plugins/systemtray/LSysTray.cpp
+++ b/lumina-desktop/panel-plugins/systemtray/LSysTray.cpp
@@ -115,10 +115,10 @@ void LSysTray::checkAll(){
LI->addWidget(cont);
//qDebug() << " - Update tray layout";
if(this->layout()->direction()==QBoxLayout::LeftToRight){
- cont->setSizeSquare(this->height()-2*frame->frameWidth()); //horizontal tray
+ cont->setSizeSquare(this->height()-2-2*frame->frameWidth()); //horizontal tray
this->setMaximumSize( trayIcons.length()*this->height(), 10000);
}else{
- cont->setSizeSquare(this->width()-2*frame->frameWidth()); //vertical tray
+ cont->setSizeSquare(this->width()-2-2*frame->frameWidth()); //vertical tray
this->setMaximumSize(10000, trayIcons.length()*this->width());
}
LSession::processEvents();
@@ -126,7 +126,7 @@ void LSysTray::checkAll(){
cont->attachApp(wins[i]);
if(cont->appID()==0){
//could not attach window - remove the widget
- qDebug() << "Invalid Tray Container:";
+ //qDebug() << "Invalid Tray Container:";
trayIcons.takeAt(trayIcons.length()-1); //Always at the end
LI->removeWidget(cont);
delete cont;
diff --git a/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp b/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp
index 78d90524..1b843e3e 100644
--- a/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp
+++ b/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp
@@ -36,10 +36,10 @@ void TrayIcon::attachApp(WId id){
dmgID = LSession::handle()->XCB->EmbedWindow(AID, IID);
if( dmgID != 0 ){
LSession::handle()->XCB->RestoreWindow(AID); //make it visible
- qDebug() << "New System Tray App:" << AID;
+ //qDebug() << "New System Tray App:" << AID;
QTimer::singleShot(1000, this, SLOT(updateIcon()) );
}else{
- qWarning() << "Could not Embed Tray Application:" << AID;
+ //qWarning() << "Could not Embed Tray Application:" << AID;
IID = 0;
AID = 0;
}
@@ -55,15 +55,15 @@ void TrayIcon::setSizeSquare(int side){
// ==============
void TrayIcon::detachApp(){
if(AID==0){ return; } //already detached
- qDebug() << "Detach App:" << AID;
+ //qDebug() << "Detach App:" << AID;
//Temporarily move the AID, so that internal slots do not auto-run
WId tmp = AID;
AID = 0;
//Now detach the application window and clean up
- qDebug() << " - Unembed";
+ //qDebug() << " - Unembed";
//WIN->setParent(0); //Reset parentage back to the main stack
LSession::handle()->XCB->UnembedWindow(tmp);
- qDebug() << " - finished app:" << tmp;
+ //qDebug() << " - finished app:" << tmp;
IID = 0;
}
bgstack15