FIX: imgui key event related issue
jira: github-6167 Change-Id: I30be4c4df4ef8eea695fed73ace1d380e790bf76
This commit is contained in:
parent
2c718bb376
commit
8c755cbca1
|
@ -513,6 +513,10 @@ void ImGuiWrapper::new_frame()
|
||||||
|
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
|
|
||||||
|
ImGui::NewFrame();
|
||||||
|
m_new_frame_open = true;
|
||||||
|
|
||||||
|
// BBL: we should render the new frame first, than reset keys' status
|
||||||
// BBL: copy & paste form prusa github repo (https://github.com/prusa3d/PrusaSlicer/blob/master/src/slic3r/GUI/ImGuiWrapper.cpp#L375C5-L402C6)
|
// BBL: copy & paste form prusa github repo (https://github.com/prusa3d/PrusaSlicer/blob/master/src/slic3r/GUI/ImGuiWrapper.cpp#L375C5-L402C6)
|
||||||
// synchronize key states
|
// synchronize key states
|
||||||
// when the application loses the focus it may happen that the key up event is not processed
|
// when the application loses the focus it may happen that the key up event is not processed
|
||||||
|
@ -543,9 +547,6 @@ void ImGuiWrapper::new_frame()
|
||||||
}
|
}
|
||||||
|
|
||||||
// BBL: end copy & paste
|
// BBL: end copy & paste
|
||||||
|
|
||||||
ImGui::NewFrame();
|
|
||||||
m_new_frame_open = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImGuiWrapper::render()
|
void ImGuiWrapper::render()
|
||||||
|
|
Loading…
Reference in New Issue