[rcore][GLFW] Update window position in WindowMaximizeCallback()#5932
[rcore][GLFW] Update window position in WindowMaximizeCallback()#5932rossberg wants to merge 1 commit into
WindowMaximizeCallback()#5932Conversation
Update window position in MaximizeCallback, since maximization does not appear to invoke PosCallback (at least on MacOS).
|
@rossberg what about other platforms? this change can break other platforms |
|
@raysan5, how can it break anything? I assume that the intended invariant of (The minor cost of that redundancy seems fine, given that maximising/restoring a window is highly infrequent, and slow anyway.) |
|
@rossberg did you test it in other platforms? I've been in this situation too many times... |
|
It seems to work on MacOS and Windows. I can't test other platforms, unfortunately. |
WindowMaximizeCallback()
|
@rossberg I will test it on Windows, Linux, macOS as soon as possible (it could be several months) |
|
I can confirm that it works on linux |
Update window position in WindowMaximizeCallback, since maximization does not appear to trigger WindowPosCallback on some platforms, such as MacOS.
Fixes #5931.