* Do not use config.h in header files.

* Throw out unused Xinerama code.

svn path=/trunk/kdebase/kwin/; revision=143596
This commit is contained in:
Waldo Bastian 2002-03-18 08:30:50 +00:00
parent c19eca1a32
commit a0ca762edd
2 changed files with 0 additions and 40 deletions

View file

@ -24,11 +24,7 @@ Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
#include <kprocess.h>
#include <kiconloader.h>
#include <kstartupinfo.h>
#if QT_VERSION < 300
#include <kdesktopwidget.h>
#else
#include <qdesktopwidget.h>
#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
}

View file

@ -20,15 +20,6 @@ Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
#include <qcursor.h>
#include <X11/Xlib.h>
#ifdef HAVE_XINERAMA
# ifndef Bool
// if Bool isn't defined, then the Xinerama header will have problems...
# define Bool int
# endif
extern "C" {
#include <X11/extensions/Xinerama.h>
};
#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 );
};