From 02d0a5bb7daf4dd53bd6d35a2c956a5cf0f6dce9 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Tue, 16 Dec 2014 15:29:04 +0100 Subject: [PATCH] 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 --- events.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/events.cpp b/events.cpp index d6f71038b0..b4390c376a 100644 --- a/events.cpp +++ b/events.cpp @@ -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) {