Browse Source

Fix stupid bug that disables onDefocus() behavior completely

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
57d21f5c29
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/window.cpp

+ 1
- 1
src/window.cpp View File

@@ -80,7 +80,7 @@ void mouseButtonCallback(GLFWwindow *window, int button, int action, int mods) {
if (gFocusedWidget) {
// onDefocus
EventDefocus e;
w->onDefocus(e);
gFocusedWidget->onDefocus(e);
}
gFocusedWidget = NULL;
if (w) {


Loading…
Cancel
Save