From a6f8e6b68e802cf79a0a20d2036ef720ce17d21a Mon Sep 17 00:00:00 2001 From: "Joakim L. Gilje" Date: Tue, 30 Nov 2021 21:29:58 +0100 Subject: [PATCH] plugged in keyboard_isfsexit and keyboard_ismsexit to ungrab mouse and leave fullscreen --- src/qt/qt_mainwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/qt/qt_mainwindow.cpp b/src/qt/qt_mainwindow.cpp index 292a50d00..6e17e3cc8 100644 --- a/src/qt/qt_mainwindow.cpp +++ b/src/qt/qt_mainwindow.cpp @@ -650,6 +650,14 @@ void MainWindow::keyPressEvent(QKeyEvent* event) #else keyboard_input(1, x11_keycode_to_keysym(event->nativeScanCode())); #endif + + if (keyboard_isfsexit()) { + ui->actionFullscreen->trigger(); + } + + if (keyboard_ismsexit()) { + plat_mouse_capture(0); + } } void MainWindow::keyReleaseEvent(QKeyEvent* event)