Also send a QHoverEvent to the decoration when MotionNotify event occurs in input window, in order to get the right cursor shape and resize mode from extended borders

REVIEW: 121556
This commit is contained in:
Hugo Pereira Da Costa 2014-12-16 15:29:04 +01:00
parent 2153174dc0
commit 02d0a5bb7d

View file

@ -1369,6 +1369,11 @@ bool Client::motionNotifyEvent(xcb_window_t w, int state, int x, int y, int x_ro
int x = x_root - geometry().x();// + padding_left;
int y = y_root - geometry().y();// + padding_top;
mousePos = QPoint(x, y);
if (m_decoration) {
QHoverEvent event(QEvent::HoverMove, QPointF(x, y), QPointF(x, y));
QCoreApplication::instance()->sendEvent(m_decoration, &event);
}
}
Position newmode = modKeyDown(state) ? PositionCenter : mousePosition(mousePos);
if (newmode != mode) {