diff --git a/src/gproshan/viewer/viewer.cpp b/src/gproshan/viewer/viewer.cpp index 6dde08da..ae29c7a1 100644 --- a/src/gproshan/viewer/viewer.cpp +++ b/src/gproshan/viewer/viewer.cpp @@ -653,7 +653,9 @@ bool viewer::m_close(viewer * view) bool viewer::m_maximize(viewer * view) { - glfwMaximizeWindow(view->window); + GLFWmonitor * monitor = glfwGetPrimaryMonitor(); + const GLFWvidmode * mode = glfwGetVideoMode(monitor); + glfwSetWindowSize(view->window, mode->width, mode->height); return false; }