mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Wayland: Fix glfwSetWindowSize resizing fs windows
glfwSetWindowSize would change the size of fullscreen mode windows as if they were windowed mode.
This commit is contained in:
parent
fdc72edf81
commit
6857995498
@ -339,6 +339,7 @@ information on what to include when reporting a bug.
|
|||||||
inconsistent state
|
inconsistent state
|
||||||
- [Wayland] Bugfix: Window maximization events were not emitted
|
- [Wayland] Bugfix: Window maximization events were not emitted
|
||||||
- [Wayland] Bugfix: `glfwRestoreWindow` assumed it was always in windowed mode
|
- [Wayland] Bugfix: `glfwRestoreWindow` assumed it was always in windowed mode
|
||||||
|
- [Wayland] Bugfix: `glfwSetWindowSize` would resize a full screen window
|
||||||
- [POSIX] Removed use of deprecated function `gettimeofday`
|
- [POSIX] Removed use of deprecated function `gettimeofday`
|
||||||
- [POSIX] Bugfix: `CLOCK_MONOTONIC` was not correctly tested for or enabled
|
- [POSIX] Bugfix: `CLOCK_MONOTONIC` was not correctly tested for or enabled
|
||||||
- [WGL] Disabled the DWM swap interval hack for Windows 8 and later (#1072)
|
- [WGL] Disabled the DWM swap interval hack for Windows 8 and later (#1072)
|
||||||
|
@ -506,7 +506,9 @@ static void xdgToplevelHandleConfigure(void* userData,
|
|||||||
}
|
}
|
||||||
|
|
||||||
_glfwInputWindowSize(window, width, height);
|
_glfwInputWindowSize(window, width, height);
|
||||||
_glfwSetWindowSizeWayland(window, width, height);
|
window->wl.width = width;
|
||||||
|
window->wl.height = height;
|
||||||
|
resizeWindow(window);
|
||||||
_glfwInputWindowDamage(window);
|
_glfwInputWindowDamage(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1839,11 +1841,18 @@ void _glfwGetWindowSizeWayland(_GLFWwindow* window, int* width, int* height)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _glfwSetWindowSizeWayland(_GLFWwindow* window, int width, int height)
|
void _glfwSetWindowSizeWayland(_GLFWwindow* window, int width, int height)
|
||||||
|
{
|
||||||
|
if (window->monitor)
|
||||||
|
{
|
||||||
|
// Video mode setting is not available on Wayland
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
window->wl.width = width;
|
window->wl.width = width;
|
||||||
window->wl.height = height;
|
window->wl.height = height;
|
||||||
resizeWindow(window);
|
resizeWindow(window);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void _glfwSetWindowSizeLimitsWayland(_GLFWwindow* window,
|
void _glfwSetWindowSizeLimitsWayland(_GLFWwindow* window,
|
||||||
int minwidth, int minheight,
|
int minwidth, int minheight,
|
||||||
|
Loading…
Reference in New Issue
Block a user