mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Added missing flags for size hints.
This commit is contained in:
parent
a49c61f1a7
commit
bd70e53352
@ -349,6 +349,7 @@ version of GLFW.</p>
|
|||||||
<li>[X11] Bugfix: Some window properties required by the ICCCM were not set</li>
|
<li>[X11] Bugfix: Some window properties required by the ICCCM were not set</li>
|
||||||
<li>[X11] Bugfix: Calling <code>glXCreateContextAttribsARB</code> with an unavailable OpenGL version caused the application to terminate with a <code>BadMatch</code> Xlib error</li>
|
<li>[X11] Bugfix: Calling <code>glXCreateContextAttribsARB</code> with an unavailable OpenGL version caused the application to terminate with a <code>BadMatch</code> Xlib error</li>
|
||||||
<li>[X11] Bugfix: A synchronization point necessary for jitter-free locked cursor mode was incorrectly removed</li>
|
<li>[X11] Bugfix: A synchronization point necessary for jitter-free locked cursor mode was incorrectly removed</li>
|
||||||
|
<li>[X11] Bugfix: The window size hints were not updated when calling <code>glfwSetWindowSize</code> on a non-resizable window</li>
|
||||||
<li>[Win32] Changed port to use Unicode mode only</li>
|
<li>[Win32] Changed port to use Unicode mode only</li>
|
||||||
<li>[Win32] Removed explicit support for versions of Windows older than Windows XP</li>
|
<li>[Win32] Removed explicit support for versions of Windows older than Windows XP</li>
|
||||||
<li>[Win32] Bugfix: Window activation and iconification did not work as expected</li>
|
<li>[Win32] Bugfix: Window activation and iconification did not work as expected</li>
|
||||||
|
@ -956,7 +956,6 @@ void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)
|
|||||||
void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
|
void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
|
||||||
{
|
{
|
||||||
int mode = 0, rate, sizeChanged = GL_FALSE;
|
int mode = 0, rate, sizeChanged = GL_FALSE;
|
||||||
XSizeHints* sizehints;
|
|
||||||
|
|
||||||
rate = window->refreshRate;
|
rate = window->refreshRate;
|
||||||
|
|
||||||
@ -970,14 +969,14 @@ void _glfwPlatformSetWindowSize(_GLFWwindow* window, int width, int height)
|
|||||||
{
|
{
|
||||||
// Update window size restrictions to match new window size
|
// Update window size restrictions to match new window size
|
||||||
|
|
||||||
sizehints = XAllocSizeHints();
|
XSizeHints* hints = XAllocSizeHints();
|
||||||
sizehints->flags = 0;
|
|
||||||
|
|
||||||
sizehints->min_width = sizehints->max_width = width;
|
hints->flags |= (PMinSize | PMaxSize);
|
||||||
sizehints->min_height = sizehints->max_height = height;
|
hints->min_width = hints->max_width = width;
|
||||||
|
hints->min_height = hints->max_height = height;
|
||||||
|
|
||||||
XSetWMNormalHints(_glfwLibrary.X11.display, window->X11.handle, sizehints);
|
XSetWMNormalHints(_glfwLibrary.X11.display, window->X11.handle, hints);
|
||||||
XFree(sizehints);
|
XFree(hints);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change window size before changing fullscreen mode?
|
// Change window size before changing fullscreen mode?
|
||||||
|
Loading…
Reference in New Issue
Block a user