diff --git a/src/decoratedclient.h b/src/decoratedclient.h index d275b535cac8cb0388c5aba61ee4266af7b2edf4..4d7948a489b1af1dba10bb514d68cda84263c4c5 100644 --- a/src/decoratedclient.h +++ b/src/decoratedclient.h @@ -6,6 +6,7 @@ #ifndef KDECORATION2_DECORATED_CLIENT_H #define KDECORATION2_DECORATED_CLIENT_H +#include "decoration.h" #include "decorationdefines.h" #include @@ -20,7 +21,6 @@ namespace KDecoration2 { -class Decoration; class DecorationBridge; class DecoratedClientPrivate; diff --git a/src/decoration.cpp b/src/decoration.cpp index 192fe1fcbc1facf4375149362062771c72ff0e3e..a21fd9e5449a2a8d383fbe2499cfee46ba32233b 100644 --- a/src/decoration.cpp +++ b/src/decoration.cpp @@ -379,7 +379,7 @@ void Decoration::mouseReleaseEvent(QMouseEvent *event) void Decoration::wheelEvent(QWheelEvent *event) { for (DecorationButton *button : d->buttons) { - if (button->contains(event->posF())) { + if (button->contains(event->position())) { QCoreApplication::instance()->sendEvent(button, event); event->setAccepted(true); }