[APP] Disable toggle fullscreen double click while rendering dialogs

This commit is contained in:
Adrian
2025-12-24 21:31:35 +00:00
committed by Radosław Gliński
parent c42aeacf25
commit f8fb490ef8
2 changed files with 6 additions and 0 deletions

View File

@@ -1073,6 +1073,10 @@ void EmulatorWindow::OnKeyDown(ui::KeyEvent& e) {
}
void EmulatorWindow::OnMouseDown(const ui::MouseEvent& e) {
if (imgui_drawer_->IsAnyDialogOpen()) {
return;
}
if (e.button() == ui::MouseEvent::Button::kLeft) {
ToggleFullscreenOnDoubleClick();
}

View File

@@ -93,6 +93,8 @@ class ImGuiDrawer : public WindowInputListener, public UIDrawer {
void LoadInputSystem(hid::InputSystem* input_system);
void SetGuideButtonAction(std::function<void(uint8_t)> func);
bool IsAnyDialogOpen() const { return !dialogs_.empty(); };
protected:
void OnKeyDown(KeyEvent& e) override;
void OnKeyUp(KeyEvent& e) override;