Menubar: fix mouse tracking bug
Co-Authored-By: Vitor K <vitor-k@users.noreply.github.com>
This commit is contained in:
parent
41682e0888
commit
9e5af4ad30
1 changed files with 0 additions and 4 deletions
|
@ -1026,7 +1026,6 @@ void GMainWindow::BootGame(const QString& filename) {
|
||||||
mouse_hide_timer.start();
|
mouse_hide_timer.start();
|
||||||
setMouseTracking(true);
|
setMouseTracking(true);
|
||||||
ui.centralwidget->setMouseTracking(true);
|
ui.centralwidget->setMouseTracking(true);
|
||||||
ui.menubar->setMouseTracking(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID();
|
const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID();
|
||||||
|
@ -1099,7 +1098,6 @@ void GMainWindow::ShutdownGame() {
|
||||||
|
|
||||||
setMouseTracking(false);
|
setMouseTracking(false);
|
||||||
ui.centralwidget->setMouseTracking(false);
|
ui.centralwidget->setMouseTracking(false);
|
||||||
ui.menubar->setMouseTracking(false);
|
|
||||||
|
|
||||||
UpdateWindowTitle();
|
UpdateWindowTitle();
|
||||||
|
|
||||||
|
@ -1861,12 +1859,10 @@ void GMainWindow::OnConfigure() {
|
||||||
if (UISettings::values.hide_mouse && emulation_running) {
|
if (UISettings::values.hide_mouse && emulation_running) {
|
||||||
setMouseTracking(true);
|
setMouseTracking(true);
|
||||||
ui.centralwidget->setMouseTracking(true);
|
ui.centralwidget->setMouseTracking(true);
|
||||||
ui.menubar->setMouseTracking(true);
|
|
||||||
mouse_hide_timer.start();
|
mouse_hide_timer.start();
|
||||||
} else {
|
} else {
|
||||||
setMouseTracking(false);
|
setMouseTracking(false);
|
||||||
ui.centralwidget->setMouseTracking(false);
|
ui.centralwidget->setMouseTracking(false);
|
||||||
ui.menubar->setMouseTracking(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dock_status_button->setChecked(Settings::values.use_docked_mode);
|
dock_status_button->setChecked(Settings::values.use_docked_mode);
|
||||||
|
|
Loading…
Reference in a new issue