From 57d21f5c29a1cfa08a545e7bfd840072b70d196b Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 11 Mar 2018 00:11:21 -0500 Subject: [PATCH] Fix stupid bug that disables onDefocus() behavior completely --- src/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cpp b/src/window.cpp index 6f59a8b2..24515632 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -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) {