Drop no longer needed XLib includes from KWin

This commit is contained in:
Martin Gräßlin 2013-08-20 10:29:20 +02:00
parent e21225fa47
commit 37334f400a
9 changed files with 1 additions and 22 deletions

View file

@ -34,8 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Qt // Qt
#include <QPixmap> #include <QPixmap>
// X // X
#include <X11/Xutil.h>
#include <fixx11h.h>
#include <xcb/sync.h> #include <xcb/sync.h>
// TODO: Cleanup the order of things in this .h file // TODO: Cleanup the order of things in this .h file

View file

@ -23,8 +23,6 @@
// KConfigSkeleton // KConfigSkeleton
#include "blurconfig.h" #include "blurconfig.h"
#include <X11/Xatom.h>
#include <QMatrix4x4> #include <QMatrix4x4>
#include <QLinkedList> #include <QLinkedList>
#include <KDebug> #include <KDebug>
@ -102,7 +100,7 @@ void BlurEffect::updateBlurRegion(EffectWindow *w) const
{ {
QRegion region; QRegion region;
const QByteArray value = w->readProperty(net_wm_blur_region, XA_CARDINAL, 32); const QByteArray value = w->readProperty(net_wm_blur_region, XCB_ATOM_CARDINAL, 32);
if (value.size() > 0 && !(value.size() % (4 * sizeof(unsigned long)))) { if (value.size() > 0 && !(value.size() % (4 * sizeof(unsigned long)))) {
const unsigned long *cardinals = reinterpret_cast<const unsigned long*>(value.constData()); const unsigned long *cardinals = reinterpret_cast<const unsigned long*>(value.constData());
for (unsigned int i = 0; i < value.size() / sizeof(unsigned long);) { for (unsigned int i = 0; i < value.size() / sizeof(unsigned long);) {

View file

@ -25,8 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <config-X11.h>
#include "client.h" #include "client.h"
#include "cursor.h" #include "cursor.h"
#include "decorations.h" #include "decorations.h"
@ -53,10 +51,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <kkeyserver.h> #include <kkeyserver.h>
#include <X11/extensions/Xfixes.h>
#include <X11/extensions/Xrandr.h>
#include <X11/Xatom.h>
#include <QX11Info>
#include <xcb/sync.h> #include <xcb/sync.h>
#include <xcb/xcb_icccm.h> #include <xcb/xcb_icccm.h>

View file

@ -42,8 +42,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <assert.h> #include <assert.h>
#ifdef KWIN_HAVE_XRENDER_COMPOSITING #ifdef KWIN_HAVE_XRENDER_COMPOSITING
#include <X11/extensions/Xrender.h>
#include <X11/extensions/Xfixes.h>
#include <xcb/xfixes.h> #include <xcb/xfixes.h>
#endif #endif

View file

@ -56,8 +56,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// normally only few of them are enabled // normally only few of them are enabled
//#define CHECK_GL_ERROR //#define CHECK_GL_ERROR
#include <X11/extensions/Xcomposite.h>
#include <qpainter.h> #include <qpainter.h>
#include <QDBusConnection> #include <QDBusConnection>
#include <QDBusConnectionInterface> #include <QDBusConnectionInterface>

View file

@ -53,7 +53,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <KDE/KProcess> #include <KDE/KProcess>
#include <KDE/KToolInvocation> #include <KDE/KToolInvocation>
#include <X11/extensions/Xrandr.h>
#ifndef KWIN_NO_XF86VM #ifndef KWIN_NO_XF86VM
#include <X11/extensions/xf86vmode.h> #include <X11/extensions/xf86vmode.h>
#endif #endif

View file

@ -27,7 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "utils.h" #include "utils.h"
#include <X11/Xatom.h>
#include <QWidget> #include <QWidget>
#ifndef KCMRULES #ifndef KCMRULES

View file

@ -35,9 +35,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QPoint> #include <QPoint>
#include <QRect> #include <QRect>
#include <QScopedPointer> #include <QScopedPointer>
// X
#include <X11/Xlib.h>
#include <fixx11h.h>
// system // system
#include <limits.h> #include <limits.h>

View file

@ -30,8 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Qt // Qt
#include <QTimer> #include <QTimer>
#include <QVector> #include <QVector>
// X
#include <X11/Xlib.h>
// std // std
#include <functional> #include <functional>