From 612cf467ce1571d71a8183a1adb0d682b9fe2bf7 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Fri, 27 Mar 2015 10:46:49 -0400 Subject: 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. --- lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lumina-desktop/panel-plugins/systemtray/TrayIcon.cpp') 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); //} -- cgit