Daniel Petersen

Results 25 comments of Daniel Petersen

Hi Yasso9. Thanks for reporting this. It is indeed an issue specific to imgui-sfml and not imgui in general. There's another issue for it here, https://github.com/eliasdaler/imgui-sfml/issues/206

@sam20908 If you want a quick fix before a better one comes along, just change line 217 of this file to > windowHasFocus = true; https://github.com/eliasdaler/imgui-sfml/blob/master/imgui-SFML.cpp#L217

Apologies, I should have been more clear. > I didn't fully understand the symptoms. When this bug is triggered, most sf::Events will not be forwarded to imgui until the user...

So - User creates Window. - User calls imgui::init(Window) - imgui::init sets WindowContext.windowHasFocus with a call to Window->hasFocus(); - Window->hasFocus() on rare circumstances can return false immediately after creation, but...

I think that makes a lot of sense. Like you said, it'd fix the bug and simplify the code. For me personally (and I imagine others) this code is redundant...

Is this on all versions (2.5.1, 2.6, master)?

I think you might have compiled against master EtoileScintillante. The sample code compiled fine for me when linked against 2.5.1. I think that constructor was changed in the master branch....

> @danieljpetersen are you saying that setSize never changes the window size on master? I don't understand it. setSize will work correctly if called on its own, but when called...

As a heavy user of SFML, I'd love to see something along these lines make it into SFML 3. As a general comment regarding the API of SFML, I find...