GithubHelp home page GithubHelp logo

Comments (4)

emersion avatar emersion commented on June 3, 2024

This is a Sway bug.

from kanshi.

jameswalmsley avatar jameswalmsley commented on June 3, 2024

Hi @emersion I've been looking at the cause of this.
The scale is converted to a fixed type on the wayland protocol.

This is 24-bits of integer, and only 8-bits of decimal precision.

I guess that's where the precision is lost.

The protocol would have to send the scale as e.g. a string or pack the float into
and int32 to keep the precision.

I'll make a PR to test this and see what the you all over at sway think.

Can imagine you don't want to break the wayland type system.

from kanshi.

emersion avatar emersion commented on June 3, 2024

Even if there are rounding errors with the scale (which isn't a big deal IMHO), the rects should have the same size.

from kanshi.

jameswalmsley avatar jameswalmsley commented on June 3, 2024

Thanks for the quick responses.

I've created an issue demonstrating the rounding error with the wlr-output-management
protocol.

swaywm/sway#4896

from kanshi.

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.