forked from openkylin/qt5-ukui-platformtheme
尝试修复wayland下窗口空白区域拖拽的问题
This commit is contained in:
parent
b4c90b4a2d
commit
b7ee8cdb6a
|
@ -199,13 +199,13 @@ void WindowManager::mouseMoveEvent(QObject *obj, QMouseEvent *e)
|
|||
if (!m_prepared_to_drag)
|
||||
return;
|
||||
|
||||
if (m_is_dragging)
|
||||
return;
|
||||
|
||||
QWidget *w = qobject_cast<QWidget*>(obj);
|
||||
const QPoint native = e->globalPos();
|
||||
qreal dpiRatio = qApp->devicePixelRatio();
|
||||
if (QX11Info::isPlatformX11()) {
|
||||
if (m_is_dragging)
|
||||
return;
|
||||
|
||||
// qDebug()<<"x11 move start";
|
||||
auto connection = QX11Info::connection();
|
||||
xcb_ungrab_pointer(connection, XCB_TIME_CURRENT_TIME);
|
||||
|
@ -258,7 +258,7 @@ void WindowManager::mouseMoveEvent(QObject *obj, QMouseEvent *e)
|
|||
return;
|
||||
shellSurface->requestMove(m_seat, m_serial);
|
||||
#endif
|
||||
|
||||
m_is_dragging = true;
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue