aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-03-11 22:38:31 -0400
committerKen Moore <ken@pcbsd.org>2015-03-11 22:38:31 -0400
commit5ecabc4daef6cd3ee739387ecf091f345d65f4f2 (patch)
treed562297a267515915859cfeccbc6a39eb9c17bb7 /lumina-desktop/panel-plugins
parentAdd a new XCB-based function for fetching the _NET_WM_ICON information as a Q... (diff)
downloadlumina-5ecabc4daef6cd3ee739387ecf091f345d65f4f2.tar.gz
lumina-5ecabc4daef6cd3ee739387ecf091f345d65f4f2.tar.bz2
lumina-5ecabc4daef6cd3ee739387ecf091f345d65f4f2.zip
Convert the windowImage routine to XCB from XLib, and set the desktop (system tray) to use the new routine.
Also setup the desktop to use the new XCB routine for window icons as well. Both are tested on 10.x and appear to work perfectly.
Diffstat (limited to 'lumina-desktop/panel-plugins')
-rw-r--r--lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp b/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp
index 7e0a30f6..23453eed 100644
--- a/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp
+++ b/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp
@@ -12,6 +12,8 @@
//#include <xcb/damage.h>
//static xcb_damage_damage_t dmgID;
+
+#include <LSession.h>
static int dmgID = 0;
TrayIcon::TrayIcon(QWidget *parent) : QWidget(parent){
@@ -115,7 +117,8 @@ void TrayIcon::paintEvent(QPaintEvent *event){
//qDebug() << " - Draw tray:" << AID << IID << this->winId();
//qDebug() << " - - " << event->rect().x() << event->rect().y() << event->rect().width() << event->rect().height();
//qDebug() << " - Get image:" << AID;
- QPixmap pix = LX11::WindowImage(AID, false);
+ QPixmap pix = LSession::handle()->XCB->WindowImage(AID, false);
+ //LX11::WindowImage(AID, false);
if(pix.isNull()){
//Try to grab the window directly with Qt
qDebug() << " - - Grab window directly";
bgstack15