mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Remove unnessary mouse grab.
* Causes warning spam with Qt wayland backend * Can sometimes cause crash on wayland * According to docs shouldn't be necesarry
This commit is contained in:
parent
91f40f2f71
commit
fe85af2560
@ -286,7 +286,6 @@ void ColorPicker::startPickingFromScreen()
|
||||
{
|
||||
if (!pickingFromScreen) {
|
||||
setMouseTracking(true);
|
||||
grabMouse(Qt::CursorShape::CrossCursor);
|
||||
pickingFromScreen = true;
|
||||
bufferColor = currColor;
|
||||
}
|
||||
@ -298,7 +297,6 @@ void ColorPicker::mouseReleaseEvent(QMouseEvent *event)
|
||||
setColor(getColorAtMouse());
|
||||
pickingFromScreen = false;
|
||||
setMouseTracking(false);
|
||||
releaseMouse();
|
||||
}
|
||||
QWidget::mouseReleaseEvent(event);
|
||||
}
|
||||
|
@ -159,7 +159,6 @@ void GraphView::beginMouseDrag(QMouseEvent *event)
|
||||
scrollBase = event->pos();
|
||||
scroll_mode = true;
|
||||
setCursor(Qt::ClosedHandCursor);
|
||||
viewport()->grabMouse();
|
||||
}
|
||||
|
||||
void GraphView::setViewOffset(QPoint offset)
|
||||
@ -741,7 +740,6 @@ void GraphView::mouseReleaseEvent(QMouseEvent *event)
|
||||
if (scroll_mode && (event->buttons() & (Qt::LeftButton | Qt::MiddleButton)) == 0) {
|
||||
scroll_mode = false;
|
||||
setCursor(Qt::ArrowCursor);
|
||||
viewport()->releaseMouse();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user