Skip to content

Commit

Permalink
Fix draggging paint in the overworld editor.
Browse files Browse the repository at this point in the history
Turn off dragging windows except by their title bars.

(cherry picked from commit f11b86f)
  • Loading branch information
Chris Frantz committed Apr 5, 2020
1 parent 95e8b73 commit c0cd3dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/imgui_impl_sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ bool ImGui_ImplSdlGL2_Init(SDL_Window* window)
// Setup back-end capabilities flags
ImGuiIO& io = ImGui::GetIO();
io.BackendFlags |= ImGuiBackendFlags_HasMouseCursors; // We can honor GetMouseCursor() values (optional)
io.ConfigWindowsMoveFromTitleBarOnly = true;

// Keyboard mapping. ImGui will use those indices to peek into the io.KeyDown[] array.
io.KeyMap[ImGuiKey_Tab] = SDL_SCANCODE_TAB;
Expand Down

0 comments on commit c0cd3dc

Please sign in to comment.