mirror of
https://github.com/glfw/glfw
synced 2026-09-27 00:28:42 +03:00
Revert "Make local pointer void" (it might incorrectly change the size when iterating)
This reverts commit e8771b9e85.
This commit is contained in:
parent
e8771b9e85
commit
eddc98d5bc
1 changed files with 2 additions and 2 deletions
|
|
@ -727,7 +727,7 @@ static void _glfwXdgToplevelHandleConfigureWayland(void* userData,
|
|||
struct wl_array* states)
|
||||
{
|
||||
_GLFWwindow* window = (_GLFWwindow*) userData;
|
||||
void* state;
|
||||
uint32_t* state;
|
||||
|
||||
window->wl.pending.activated = GLFW_FALSE;
|
||||
window->wl.pending.maximized = GLFW_FALSE;
|
||||
|
|
@ -735,7 +735,7 @@ static void _glfwXdgToplevelHandleConfigureWayland(void* userData,
|
|||
|
||||
wl_array_for_each(state, states)
|
||||
{
|
||||
switch (*((uint32_t*) state))
|
||||
switch (*state)
|
||||
{
|
||||
case XDG_TOPLEVEL_STATE_MAXIMIZED:
|
||||
window->wl.pending.maximized = GLFW_TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue