Open blankRiot96 opened 1 month ago
Maximized is not fullscreen. It just means the window is supposed to be the size of the window. There are fullscreen and fullscreen_desktop kwargs to choose and use. Reference docs in case you haven't seen it on the site: https://pyga.me/docs/ref/window.html
I'd be also interested to know what happens if you add a KEYDOWN -> win.maximize() call. Maybe it can't start maximized but could be maximized after creation on your platform.
Also we've just promoted pygame.Window to public API in 2.5.2.dev2, so please try with that. pygame._sdl2.video.Window
is basically an old alias at this point.
Works as expected on Windows.
Worked as expected on arch + kde as well. This issue was caught using an old project of mine; I'll be swapping the alias shortly. The "maximised" behaviour is what I was after, specifically not full screen. At least not until I'm a lot further along in development and don't have to close the window so often. On hyprland it stays shrunk to whatever size
is passed as.
Environment:
Current behavior: This is the code that works on other platforms, but not on Hyprland
Expected behavior: It was supposed to start the window in fullscreen, but instead its a tiny window It works with the regular
display
API andpygame.FULLSCREEN
flagSteps to reproduce:
Test code