-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BadCursor error on shutdown #204
Comments
Hello |
I tried to guess what is meant here, and even throw in an extra cursor manipulation, but I don't observe any such error. diff --git a/examples/minimal/main.cpp b/examples/minimal/main.cpp
index 2c19abd08..d30ae607e 100644
--- a/examples/minimal/main.cpp
+++ b/examples/minimal/main.cpp
@@ -31,7 +31,11 @@ int main() {
ImGui::ShowDemoWindow();
ImGui::Begin("Hello, world!");
- ImGui::Button("Look at this pretty button");
+ if (ImGui::Button("Exit")) {
+ window.close();
+ }
+ if (ImGui::IsItemHovered())
+ ImGui::SetMouseCursor(ImGuiMouseCursor_Hand);
ImGui::End();
window.clear();
Does not reproduce when I click the button |
i'm sorry for the delay. i forgot about it...
i got this error in kde on arch |
getting this error when mouse click cause shutdown (clicking imgui button that cause the main loop to break), and sfml window was not closed (easy to fix.. just check if the window is open and close if true...), And call sf::imgui::shutdown().
I thought it worth sharing if someone will get the same error... it took me about a hour to find the problem...
The text was updated successfully, but these errors were encountered: