68c675d00d
Occasionally, I see complaints about the file organization of kwin, which is fair enough. This change makes the source code more relocatable by removing relative paths from includes. CMAKE_CURRENT_SOURCE_DIR was added to the interface include directories of kwin library. This means that as long as you link against kwin target, the real location of the source code of the library doesn't matter. With autotests, things are not as convenient as with kwin target. Some tests use cpp files from kwin core. If we move all source code in a src/ directory, they will need to be adjusted, but mostly only in build scripts.
42 lines
725 B
C++
42 lines
725 B
C++
/*
|
|
KWin - the KDE window manager
|
|
This file is part of the KDE project.
|
|
|
|
SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
#include "platformcursor.h"
|
|
#include "cursor.h"
|
|
|
|
namespace KWin
|
|
{
|
|
namespace QPA
|
|
{
|
|
|
|
PlatformCursor::PlatformCursor()
|
|
: QPlatformCursor()
|
|
{
|
|
}
|
|
|
|
PlatformCursor::~PlatformCursor() = default;
|
|
|
|
QPoint PlatformCursor::pos() const
|
|
{
|
|
return Cursors::self()->mouse()->pos();
|
|
}
|
|
|
|
void PlatformCursor::setPos(const QPoint &pos)
|
|
{
|
|
Cursors::self()->mouse()->setPos(pos);
|
|
}
|
|
|
|
void PlatformCursor::changeCursor(QCursor *windowCursor, QWindow *window)
|
|
{
|
|
Q_UNUSED(windowCursor)
|
|
Q_UNUSED(window)
|
|
// TODO: implement
|
|
}
|
|
|
|
}
|
|
}
|