Comments (4)
Thanks! So, the relevant bits are here:
[1653593.718] -> [email protected]_min_size(0, 0)
[1653593.720] -> [email protected]_max_size(0, 0)
[1653593.723] -> [email protected]_window_geometry(0, -24, 1280, 744)
[1653593.726] -> [email protected]()
[1653593.729] -> [email protected]_fullscreen(wl_output@6)
<some irrelevant lines removed>
[1653595.846] [email protected](1280, 744, array[8])
SDL is clearing the constraints, committing to apply the new values, and issuing the fullscreen request, but the compositor is replying with the old size of the window as the fullscreen window dimensions (the extra 24 pixels are where the title bar used to be). SDL is obeying the size that it is given, as the spec states that the supplied fullscreen dimensions are a maximum and clients must be that size or smaller.
SDL seems to be doing everything right here and this doesn't happen on upstream GNOME, so I'm inclined to say that this is a bug in Unity's Mutter fork, especially given the sporadic reproduction nature that you mentioned.
from sdl.
Can you run it with the envvar WAYLAND_DEBUG=1
and attach the output in a case where it is broken? The size constraints are forcibly removed when entering fullscreen, so something is strange here.
from sdl.
Hi! Thanks for the reply.. I did have a peek into the wayland code and saw it removes that constraint so yeah could be barking up the wrong tree there..
I have attached a log here, cleaned out some of my games log data so hopefully is ok but I also left in the output when I toggle screen size changes so you can search to INFO: Entering fullscreen
to see were I toggle fullscreen since there is a lot dumped from wayland there.
from sdl.
Nice, thanks for the feedback, of course title bar for the xtra 24px.
Well, probably not really anything to do on SDL3 as whatever would be need ed would be a bit of a workaround.. I just removed the constraint for resizing from my game for now and fixed some of my own calcs which seems to be ok. I also tried creating the window as sizeable then setting the constraint later - same behaviour.
Cheers for digging into it, much appreciated!
from sdl.
Related Issues (20)
- SDL2 SDL_Keycode returns characters in current keyboard layout HOT 2
- SDL3 doesn't statically link without SDL_STATIC_PIC flag on Ubuntu 24.04
- SDL3 static link fail when making a shared object without SDL_STATIC_PIC HOT 4
- [Regression (again)] Metal YUV rendering broken on Intel MacOS HOT 15
- SDL_ReadU32LE vs SDL_SwapLE32: location of LE suffix is inconsistent HOT 2
- There is no `SDL_ReadS8` HOT 1
- [email protected]
- `SDL_SetRelativeMouseMode` in `SDL_EVENT_MOUSE_BUTTON_DOWN` blocks until the button is released HOT 1
- Hint for using RawInput for mouse? HOT 10
- Inconsitent types for SDL_KeyCode HOT 1
- [Question][SDL3/testffmpeg] How can do 'SDL_RenderFillRect' on video frame? HOT 4
- [SDL2] Unable to make EGL context current (call to eglMakeCurrent failed, reporting an error of EGL_BAD_ACCESS) HOT 7
- Is possible to make SDL one header file and one source file? HOT 3
- Turn SDL_GLContext into an opaque type HOT 3
- CFString Memory Leak caused by call to Mix_OpenAudio
- Random numbers HOT 3
- Set gain value in audio streams HOT 1
- Issues with multiple opengl contexts on iOS
- [emscripten] SDL_WindowID=0 when relasing mouse button outside the canvas
- Is it right use the same value for the left right rumble in SDL/src/joystick/hidapi/SDL_hidapi_switch.c HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdl.