mahilab / mahi-gui

Dirt Simple C++ GUI Toolkit using GLFW, ImGui, and NanoVG
MIT License
454 stars 70 forks source link

Focus window #13

Closed ozlb closed 4 years ago

ozlb commented 4 years ago

https://github.com/mahilab/mahi-gui/issues/8#issuecomment-613850499

ozlb commented 4 years ago
// focus window
if (frame_hovered && (IO.MouseClicked[0] || IO.MouseClicked[1])) FocusWindow(GetCurrentWindow());
epezent commented 4 years ago

yep, I already added the extra check!