Skip to content

Commit

Permalink
Inverted the logic for the keyboard pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
anirul committed Mar 18, 2024
1 parent 3dfc956 commit 0c675f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frame/opengl/gui/sdl_opengl_draw_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ bool SDL2OpenGLDrawGui::PollEvent(void* event)
if (is_keyboard_passed_)
return false;
auto& io = ImGui::GetIO();
return (is_keyboard_passed_locked_)
return (!is_keyboard_passed_locked_)
? io.WantCaptureMouse || io.WantCaptureKeyboard
: false;
}
Expand Down

0 comments on commit 0c675f1

Please sign in to comment.