title: C GLFW How would I set a minimum size for a window?
body: <p>The title explains everything. Using the library GLFW from C, how could I keep the window width from going lower than 20 pixels across, or 10. How could I keep the height from reaching no more then 100? I tried making a callback function for when the window resizes that looks like this:</p>
  
  <pre><code>void windowResizeCallback(GLFWwindow* window, int width, int height) {
      glfwSetWindowSize(window, max(width, 50), max(height, 50));
  }
  </code></pre>
  
  <p>However, when I reach the boundaries, my Mac throws a segmentation fault at my program. How can I fix this?</p>