A little while ago, I don't know exactly what happened, maybe an update of something on my machine, but love.resize started receiving wrong wrong window dimensions when maximizing or restoring the window. It works correctly when I resize by dragging the window borders, but when I maximize I get the values from before maximizing and when I restore I get values of the maximized window, so my game is always rendering wrong. For example:
Code: Select all
function love.resize(w, h)
print(w, h)
end
* When I maximize this prints something like 800x600, the windowed, before maximization size
* When I restore it prints the maximized size 1360x696
Does anyone have the same problem or have an idea of what's happening and what I can do about it?
I'm on arch linux using gnome. I tested on openbox to see if it was a problem with gnome and the same problem happened there. I also tried gnome with both wayland and xorg.