diff --git a/src/Magnum/Platform/GlfwApplication.cpp b/src/Magnum/Platform/GlfwApplication.cpp index fcfd93e5a..f3f99c413 100644 --- a/src/Magnum/Platform/GlfwApplication.cpp +++ b/src/Magnum/Platform/GlfwApplication.cpp @@ -344,6 +344,10 @@ bool GlfwApplication::tryCreate(const Configuration& configuration, const GLConf void GlfwApplication::setupCallbacks() { glfwSetWindowUserPointer(_window, this); + glfwSetWindowRefreshCallback(_window, [](GLFWwindow* const window){ + /* Properly redraw after the window is restored from minimized state */ + static_cast(glfwGetWindowUserPointer(window))->drawEvent(); + }); glfwSetFramebufferSizeCallback(_window, [](GLFWwindow* const window, const int w, const int h) { static_cast(glfwGetWindowUserPointer(window))->viewportEvent({w, h}); });