Drop dependency on kdecoration.h
This commit is contained in:
parent
3d9a035312
commit
4c9744fe8e
7 changed files with 13 additions and 3 deletions
|
@ -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>
|
||||
|
|
3
client.h
3
client.h
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
2
rules.h
2
rules.h
|
@ -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"
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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()),
|
||||
|
|
Loading…
Reference in a new issue