Make more methods in kwin/utils.cpp available to the rules KCM

Needed as the kcm includes cursor.

Sorry Eike ;-)
This commit is contained in:
Martin Gräßlin 2013-09-30 10:56:56 +02:00
parent 098b8ef75d
commit 3b07653613

View file

@ -28,12 +28,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "utils.h"
#include <QWidget>
#include <kkeyserver.h>
#ifndef KCMRULES
#include <assert.h>
#include <QApplication>
#include <QDebug>
#include <kkeyserver.h>
#include <X11/Xlib.h>
@ -215,6 +215,7 @@ QPoint cursorPos()
{
return Cursor::self()->pos();
}
#endif
// converting between X11 mouse/keyboard state mask and Qt button/keyboard states
@ -294,7 +295,6 @@ Qt::KeyboardModifiers x11ToQtKeyboardModifiers(int state)
return ret;
}
#endif
} // namespace
#ifndef KCMRULES