mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 05:08:23 +00:00
Hide mouse: fix for secondary window and single window mode (#6220)
This commit is contained in:
parent
517e0bc342
commit
51e252c7ed
1 changed files with 6 additions and 0 deletions
|
@ -2233,10 +2233,16 @@ void GMainWindow::HideMouseCursor() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
render_window->setCursor(QCursor(Qt::BlankCursor));
|
render_window->setCursor(QCursor(Qt::BlankCursor));
|
||||||
|
secondary_window->setCursor(QCursor(Qt::BlankCursor));
|
||||||
|
if (UISettings::values.single_window_mode.GetValue()) {
|
||||||
|
setCursor(QCursor(Qt::BlankCursor));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::ShowMouseCursor() {
|
void GMainWindow::ShowMouseCursor() {
|
||||||
|
unsetCursor();
|
||||||
render_window->unsetCursor();
|
render_window->unsetCursor();
|
||||||
|
secondary_window->unsetCursor();
|
||||||
if (emu_thread != nullptr && UISettings::values.hide_mouse) {
|
if (emu_thread != nullptr && UISettings::values.hide_mouse) {
|
||||||
mouse_hide_timer.start();
|
mouse_hide_timer.start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue