From 70e44ab6ecc27eac3953fb7939225e3d5447bf86 Mon Sep 17 00:00:00 2001 From: Gliniak Date: Sat, 29 Nov 2025 23:02:54 +0100 Subject: [PATCH] [APP] Added config option to disable fullscreen mode on mouse double-click --- src/xenia/app/emulator_window.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/xenia/app/emulator_window.cc b/src/xenia/app/emulator_window.cc index ab54e7333..dc00c9d5e 100644 --- a/src/xenia/app/emulator_window.cc +++ b/src/xenia/app/emulator_window.cc @@ -140,6 +140,11 @@ DEFINE_int32(recent_titles_entry_amount, 10, "Allows user to define how many titles is saved in list of " "recently played titles.", "General"); +DEFINE_bool(disable_doubleclick_fullscreen, false, + "Allows the user to disable the behavior where a fast double-click " + "causes Xenia to enter fullscreen mode.", + "General"); + namespace xe { namespace app { @@ -1152,6 +1157,10 @@ void EmulatorWindow::SaveImage(const std::filesystem::path& filepath, } void EmulatorWindow::ToggleFullscreenOnDoubleClick() { + if (cvars::disable_doubleclick_fullscreen) { + return; + } + // this function tests if user has double clicked. // if double click was achieved the fullscreen gets toggled const auto now = steady_clock::now(); // current mouse event time