From a688abca07d6193c1a2a2ea3436ad8aaf54a5cd8 Mon Sep 17 00:00:00 2001 From: Jonathan Hoffstadt Date: Thu, 13 Aug 2020 18:38:53 -0500 Subject: [PATCH] [MAC][LINUX]configured imgui windows to be moveable from title only --- DearPyGui/src/Platform/Apple/mvAppleWindow.mm | 1 + DearPyGui/src/Platform/Linux/mvLinuxWindow.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/DearPyGui/src/Platform/Apple/mvAppleWindow.mm b/DearPyGui/src/Platform/Apple/mvAppleWindow.mm index ca26fdb1a..ee3b3dde9 100644 --- a/DearPyGui/src/Platform/Apple/mvAppleWindow.mm +++ b/DearPyGui/src/Platform/Apple/mvAppleWindow.mm @@ -41,6 +41,7 @@ static void glfw_error_callback(int error, const char *description) IMGUI_CHECKVERSION(); ImGui::CreateContext(); ImGuiIO &io = ImGui::GetIO(); + io.ConfigWindowsMoveFromTitleBarOnly = true; (void) io; //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls diff --git a/DearPyGui/src/Platform/Linux/mvLinuxWindow.cpp b/DearPyGui/src/Platform/Linux/mvLinuxWindow.cpp index 76c64fcbd..ee0ef6d3d 100644 --- a/DearPyGui/src/Platform/Linux/mvLinuxWindow.cpp +++ b/DearPyGui/src/Platform/Linux/mvLinuxWindow.cpp @@ -55,6 +55,7 @@ namespace Marvel { IMGUI_CHECKVERSION(); ImGui::CreateContext(); ImGuiIO& io = ImGui::GetIO(); (void)io; + io.ConfigWindowsMoveFromTitleBarOnly = true; //io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls //io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls