Check that double click is done using the left button before toggling full-screen mode

This commit is contained in:
Luis Ángel San Martín 2022-01-13 23:06:24 +01:00
parent d20958c14f
commit fce1f163aa

View File

@ -1078,8 +1078,10 @@ void MainWindowViewer::keyPressEvent(QKeyEvent *event)
void MainWindowViewer::mouseDoubleClickEvent(QMouseEvent *event)
{
toggleFullScreen();
event->accept();
if (event->button() == Qt::LeftButton) {
toggleFullScreen();
event->accept();
}
}
void MainWindowViewer::toggleFullScreen()