Drop dependency on kdecoration.h

This commit is contained in:
Martin Gräßlin 2014-12-02 13:50:26 +01:00
parent 3d9a035312
commit 4c9744fe8e
7 changed files with 13 additions and 3 deletions

View file

@ -50,6 +50,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Qt
#include <QApplication>
#include <QDebug>
#include <QFile>
#include <QProcess>
#include <QStandardPaths>
#include <QScriptEngine>

View file

@ -23,7 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define KWIN_CLIENT_H
// kwin
#include <kdecoration.h>
#include "options.h"
#include "rules.h"
#include "tabgroup.h"
@ -31,6 +30,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "xcbutils.h"
// Qt
#include <QElapsedTimer>
#include <QFlags>
#include <QPointer>
#include <QPixmap>
#include <QWindow>
// X

View file

@ -48,8 +48,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <QApplication>
#include <QDebug>
#include <QHoverEvent>
#include <QKeyEvent>
#include <QMouseEvent>
#include <QStyleHints>
#include <QWhatsThis>
#include <QWheelEvent>
#include <kkeyserver.h>

View file

@ -32,6 +32,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#if HAVE_INPUT
#include "libinput/connection.h"
#endif
// Qt
#include <QKeyEvent>
#include <QMouseEvent>
// KDE
#include <kkeyserver.h>
// TODO: remove xtest

View file

@ -24,10 +24,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <netwm_def.h>
#include <QRect>
#include <QVector>
#include <kconfiggroup.h>
#include "placement.h"
#include <kdecoration.h>
#include "options.h"
#include "utils.h"

View file

@ -45,6 +45,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// Qt
#include <QAction>
#include <QDebug>
#include <QKeyEvent>
// KDE
#include <KConfig>
#include <KConfigGroup>

View file

@ -736,7 +736,7 @@ void UserActionsMenu::slotWindowOperation(QAction *action)
helperDialog(type, c);
// need to delay performing the window operation as we need to have the
// user actions menu closed before we destroy the decoration. Otherwise Qt crashes
qRegisterMetaType<KDecorationDefines::WindowOperation>();
qRegisterMetaType<Options::WindowOperation>();
QMetaObject::invokeMethod(workspace(), "performWindowOperation",
Qt::QueuedConnection,
Q_ARG(KWin::Client*, c.data()),