From fce1f163aa6bf9d68ff3cf30015aa1ff065f9f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Thu, 13 Jan 2022 23:06:24 +0100 Subject: [PATCH] Check that double click is done using the left button before toggling full-screen mode --- YACReader/main_window_viewer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/YACReader/main_window_viewer.cpp b/YACReader/main_window_viewer.cpp index 9bd53f53..afd6b100 100644 --- a/YACReader/main_window_viewer.cpp +++ b/YACReader/main_window_viewer.cpp @@ -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()