Giter Site home page Giter Site logo

Comments (4)

Kontrabant avatar Kontrabant commented on July 17, 2024 2

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.

Kontrabant avatar Kontrabant commented on July 17, 2024

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.

BurkeyCode avatar BurkeyCode commented on July 17, 2024

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.

error.txt

from sdl.

BurkeyCode avatar BurkeyCode commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.