hide statusbar and menubar when fullscreen. prevent exit-fullscreen from triggering 'enter fullscreen'
This commit is contained in:
@@ -787,9 +787,13 @@ uint16_t x11_keycode_to_keysym(uint32_t keycode)
|
|||||||
|
|
||||||
void MainWindow::on_actionFullscreen_triggered() {
|
void MainWindow::on_actionFullscreen_triggered() {
|
||||||
if (video_fullscreen > 0) {
|
if (video_fullscreen > 0) {
|
||||||
|
ui->menubar->show();
|
||||||
|
ui->statusbar->show();
|
||||||
showNormal();
|
showNormal();
|
||||||
video_fullscreen = 0;
|
video_fullscreen = 0;
|
||||||
} else {
|
} else {
|
||||||
|
ui->menubar->hide();
|
||||||
|
ui->statusbar->hide();
|
||||||
showFullScreen();
|
showFullScreen();
|
||||||
video_fullscreen = 1;
|
video_fullscreen = 1;
|
||||||
}
|
}
|
||||||
@@ -870,7 +874,7 @@ void MainWindow::keyPressEvent(QKeyEvent* event)
|
|||||||
keyboard_input(1, x11_keycode_to_keysym(event->nativeScanCode()));
|
keyboard_input(1, x11_keycode_to_keysym(event->nativeScanCode()));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (keyboard_isfsexit()) {
|
if ((video_fullscreen > 0) && keyboard_isfsexit()) {
|
||||||
ui->actionFullscreen->trigger();
|
ui->actionFullscreen->trigger();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user