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:
parent
098b8ef75d
commit
3b07653613
1 changed files with 2 additions and 2 deletions
|
@ -28,12 +28,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
#include <kkeyserver.h>
|
||||||
|
|
||||||
#ifndef KCMRULES
|
#ifndef KCMRULES
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <kkeyserver.h>
|
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
|
||||||
|
@ -215,6 +215,7 @@ QPoint cursorPos()
|
||||||
{
|
{
|
||||||
return Cursor::self()->pos();
|
return Cursor::self()->pos();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// converting between X11 mouse/keyboard state mask and Qt button/keyboard states
|
// converting between X11 mouse/keyboard state mask and Qt button/keyboard states
|
||||||
|
|
||||||
|
@ -294,7 +295,6 @@ Qt::KeyboardModifiers x11ToQtKeyboardModifiers(int state)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
#ifndef KCMRULES
|
#ifndef KCMRULES
|
||||||
|
|
Loading…
Reference in a new issue