Accidentally left mouse capture half-baked

This commit is contained in:
Cacodemon345
2021-12-01 01:11:06 +06:00
parent 563869a06e
commit de88caf4b1

View File

@@ -74,12 +74,12 @@ void GLESWidget::mouseReleaseEvent(QMouseEvent *event)
{
if (this->geometry().contains(event->pos()) && event->button() == Qt::LeftButton && !mouse_capture)
{
this->grabMouse();
plat_mouse_capture(1);
return;
}
if (mouse_capture && event->button() == Qt::MiddleButton && mouse_get_buttons() < 3)
{
this->releaseMouse();
plat_mouse_capture(0);
return;
}
if (mouse_capture)