From a0ca762eddcfb20db324a44ef71e66758e43a0fa Mon Sep 17 00:00:00 2001 From: Waldo Bastian Date: Mon, 18 Mar 2002 08:30:50 +0000 Subject: [PATCH] * Do not use config.h in header files. * Throw out unused Xinerama code. svn path=/trunk/kdebase/kwin/; revision=143596 --- workspace.cpp | 26 -------------------------- workspace.h | 14 -------------- 2 files changed, 40 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index 29f98ccdd3..33401ba79d 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -24,11 +24,7 @@ Copyright (C) 1999, 2000 Matthias Ettrich #include #include #include -#if QT_VERSION < 300 -#include -#else #include -#endif #include "workspace.h" #include "client.h" #include "tabbox.h" @@ -289,23 +285,6 @@ Workspace::Workspace( bool restore ) installed_colormap = default_colormap; session.setAutoDelete( TRUE ); -#ifdef HAVE_XINERAMA - if (XineramaIsActive(qt_xdisplay())) { - xineramaInfo = XineramaQueryScreens(qt_xdisplay(), &numHeads); - } else { - xineramaInfo = &dummy_xineramaInfo; - QRect rect = QApplication::desktop()->geometry(); - - dummy_xineramaInfo.screen_number = 0; - dummy_xineramaInfo.x_org = rect.x(); - dummy_xineramaInfo.y_org = rect.y(); - dummy_xineramaInfo.width = rect.width(); - dummy_xineramaInfo.height = rect.height(); - - numHeads = 1; - } -#endif - if ( restore ) loadSessionInfo(); @@ -489,11 +468,6 @@ Workspace::~Workspace() delete mgr; delete d; _self = 0; - -#ifdef HAVE_XINERAMA - if (xineramaInfo != &dummy_xineramaInfo) - XFree(xineramaInfo); -#endif } diff --git a/workspace.h b/workspace.h index 966e006ab7..22b738626b 100644 --- a/workspace.h +++ b/workspace.h @@ -20,15 +20,6 @@ Copyright (C) 1999, 2000 Matthias Ettrich #include #include -#ifdef HAVE_XINERAMA -# ifndef Bool -// if Bool isn't defined, then the Xinerama header will have problems... -# define Bool int -# endif -extern "C" { -#include -}; -#endif class KConfig; class KGlobalAccel; @@ -443,11 +434,6 @@ private: WorkspacePrivate* d; static Workspace *_self; -#ifdef HAVE_XINERAMA - int numHeads; - XineramaScreenInfo *xineramaInfo; - XineramaScreenInfo dummy_xineramaInfo; -#endif void addClient( Client* c ); };