aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-03-27 10:46:49 -0400
committerKen Moore <ken@pcbsd.org>2015-03-27 10:46:49 -0400
commit612cf467ce1571d71a8183a1adb0d682b9fe2bf7 (patch)
tree9d023b2db9bfd29957560b53067e1c690177666a /lumina-desktop
parentMerge pull request #78 from Nanolx/master (diff)
downloadlumina-612cf467ce1571d71a8183a1adb0d682b9fe2bf7.tar.gz
lumina-612cf467ce1571d71a8183a1adb0d682b9fe2bf7.tar.bz2
lumina-612cf467ce1571d71a8183a1adb0d682b9fe2bf7.zip
Update the system tray Embed/Unembed routines to use the XCB library instead of XLib. This bahaves exactly the same on my FreeBSD 10.x system - still need to test a FreeBSD 11.x system.
Diffstat (limited to 'lumina-desktop')
-rw-r--r--lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp b/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp
index e966f389..7f12bb52 100644
--- a/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp
+++ b/lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp
@@ -39,7 +39,7 @@ void TrayIcon::attachApp(WId id){
AID = id;
IID = this->winId(); //embed directly into this widget
//IID = LX11::CreateWindow( this->winId(), this->rect() ); //Create an intermediate window to be the parent
- if( LX11::EmbedWindow(AID, IID) ){
+ if( LSession::handle()->XCB->EmbedWindow(AID, IID) ){
LX11::RestoreWindow(AID); //make it visible
//XSelectInput(QX11Info::display(), AID, StructureNotifyMask);
//xcb_damage_create(QX11Info::connection(), dmgID, AID, XCB_DAMAGE_REPORT_LEVEL_RAW_RECTANGLES);
@@ -69,7 +69,7 @@ void TrayIcon::detachApp(){
AID = 0;
//Now detach the application window and clean up
qDebug() << " - Unembed";
- LX11::UnembedWindow(tmp);
+ LSession::handle()->XCB->UnembedWindow(tmp);
//if(dmgID!=0){
//XDamageDestroy(QX11Info::display(), dmgID);
//}
bgstack15