[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/plasma/private
From:       Christian Ehrlicher <ch.ehrlicher () gmx ! de>
Date:       2011-01-16 12:20:20
Message-ID: 20110116122020.E91E93E1F2 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1214795 by chehrlic:

Compile on non-X11 systems...

 M  +6 -1      effectwatcher.cpp  
 M  +2 -0      effectwatcher_p.h  


--- trunk/KDE/kdelibs/plasma/private/effectwatcher.cpp #1214794:1214795
@@ -22,8 +22,9 @@
 #include <kapplication.h>
 #include <kdebug.h>
 
-
+#ifdef Q_WS_X11
 #include <X11/Xlib.h>
+#endif
 
 namespace Plasma
 {
@@ -34,12 +35,15 @@
       m_effect(effect),
       m_effectActive(false)
 {
+#ifdef Q_WS_X11
     kapp->installX11EventFilter( this );
     Display *dpy = QX11Info::display();
     XSelectInput(dpy, RootWindow(dpy, 0), PropertyChangeMask);
+#endif
 }
 
 
+#ifdef Q_WS_X11
 bool EffectWatcher::x11Event(XEvent *event)
 {
     bool nowEffectActive = WindowEffects::isEffectAvailable(m_effect);
@@ -49,6 +53,7 @@
     }
     return QWidget::x11Event(event);
 }
+#endif
 
 
 }
--- trunk/KDE/kdelibs/plasma/private/effectwatcher_p.h #1214794:1214795
@@ -35,7 +35,9 @@
     EffectWatcher(Plasma::WindowEffects::Effect effect, QWidget *parent = 0);
 
 protected:
+#ifdef Q_WS_X11
     bool x11Event(XEvent *event);
+#endif
 
 Q_SIGNALS:
     void blurBehindChanged(bool blur);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic