aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LSession.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/LSession.cpp')
-rw-r--r--lumina-desktop/LSession.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index 26cb1699..af59b769 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -19,11 +19,11 @@
#include <unistd.h> //for usleep() usage
//X includes (these need to be last due to Qt compile issues)
-#include <X11/Xlib.h>
+/*#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/extensions/Xrender.h>
-#include <X11/extensions/Xdamage.h>
+#include <X11/extensions/Xdamage.h>*/
#ifndef DEBUG
#define DEBUG 0
@@ -777,7 +777,8 @@ void LSession::startSystemTray(){
TrayStopping = false;
if(SystemTrayID!=0){
XCB->SelectInput(SystemTrayID); //make sure TrayID events get forwarded here
- XDamageQueryExtension( QX11Info::display(), &TrayDmgEvent, &TrayDmgError);
+ TrayDmgEvent = XCB->GenerateDamageID(SystemTrayID);
+ //XDamageQueryExtension( QX11Info::display(), &TrayDmgEvent, &TrayDmgError);
evFilter->setTrayDamageFlag(TrayDmgEvent);
qDebug() << "System Tray Started Successfully";
if(DEBUG){ qDebug() << " - System Tray Flags:" << TrayDmgEvent << TrayDmgError; }
bgstack15