From 45b08b6010c8f19476ac07e7ed7d1cd6f907f447 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 9 Aug 2025 16:22:07 +0200 Subject: [PATCH] impr: Enable some of the new ImGui configs --- main/gui/source/window/window.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp index 8a632aae1..b9d007391 100644 --- a/main/gui/source/window/window.cpp +++ b/main/gui/source/window/window.cpp @@ -1285,10 +1285,17 @@ namespace hex { io.ConfigFlags |= ImGuiConfigFlags_DockingEnable | ImGuiConfigFlags_NavEnableKeyboard; io.ConfigWindowsMoveFromTitleBarOnly = true; + io.ConfigDragClickToInputText = true; if (glfwGetPrimaryMonitor() != nullptr) { - if (ImHexApi::System::isMutliWindowModeEnabled()) + if (ImHexApi::System::isMutliWindowModeEnabled()) { io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; + + // Enable viewport window OS decorations on Linux so that the window can be moved around on Wayland + #if defined (OS_LINUX) + io.ConfigViewportsNoDecoration = false; + #endif + } } io.ConfigViewportsNoTaskBarIcon = false;