aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-02 09:27:50 -0400
committerKen Moore <moorekou@gmail.com>2015-10-02 09:27:50 -0400
commit142f72259aeba5e1c64960974fb9087b861ba735 (patch)
treecb75b7e185b81e4ee202e7cebf526dd027dc9a00 /lumina-desktop/panel-plugins
parentRevert the debug/release flag change to all the *.pro files. This causes issu... (diff)
downloadlumina-142f72259aeba5e1c64960974fb9087b861ba735.tar.gz
lumina-142f72259aeba5e1c64960974fb9087b861ba735.tar.bz2
lumina-142f72259aeba5e1c64960974fb9087b861ba735.zip
Add a 1 pixel margin around the panel plugins - this helps a lot with hidden panels "detecting" when the mouse leaves the window.
Diffstat (limited to 'lumina-desktop/panel-plugins')
-rw-r--r--lumina-desktop/panel-plugins/LPPlugin.h2
-rw-r--r--lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp5
2 files changed, 4 insertions, 3 deletions
diff --git a/lumina-desktop/panel-plugins/LPPlugin.h b/lumina-desktop/panel-plugins/LPPlugin.h
index 40508522..beff3bf6 100644
--- a/lumina-desktop/panel-plugins/LPPlugin.h
+++ b/lumina-desktop/panel-plugins/LPPlugin.h
@@ -27,7 +27,7 @@ private:
public:
LPPlugin(QWidget *parent = 0, QString ptype="unknown", bool horizontal = true) : QWidget(parent){
plugintype=ptype;
- this->setContentsMargins(0,0,0,0);
+ this->setContentsMargins(1,1,1,1);
this->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
this->setFocusPolicy(Qt::NoFocus); //no keyboard focus on the panel/plugins
if(horizontal){LY = new QBoxLayout(QBoxLayout::LeftToRight, this); }
diff --git a/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp b/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp
index 01af6936..a8117b84 100644
--- a/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp
+++ b/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp
@@ -46,6 +46,7 @@ void TrayIcon::attachApp(WId id){
}
void TrayIcon::setSizeSquare(int side){
+ qDebug() << " Set Fixes Systray size:" << side;
this->setFixedSize( QSize(side, side) );
}
@@ -106,8 +107,8 @@ void TrayIcon::paintEvent(QPaintEvent *event){
qDebug() << "Null Qt Pixmap - Use XCB grab image:";
pix = LSession::handle()->XCB->TrayImage(AID);
}*/
- //qDebug() << " - Pix size:" << pix.size().width() << pix.size().height();
- //qDebug() << " - Geom:" << this->geometry().x() << this->geometry().y() << this->geometry().width() << this->geometry().height();
+ qDebug() << " - Pix size:" << pix.size().width() << pix.size().height();
+ qDebug() << " - Geom:" << this->geometry().x() << this->geometry().y() << this->geometry().width() << this->geometry().height();
if(!pix.isNull()){
if(this->size() != pix.size()){ QTimer::singleShot(10, this, SLOT(updateIcon())); }
painter.drawPixmap(0,0,this->width(), this->height(), pix.scaled(this->size(), Qt::KeepAspectRatio, Qt::SmoothTransformation) );
bgstack15