Comments (4)
This is a Sway bug.
from kanshi.
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.
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.
Thanks for the quick responses.
I've created an issue demonstrating the rounding error with the wlr-output-management
protocol.
from kanshi.
Related Issues (20)
- kanshi exits when undocking laptop from two external monitors HOT 2
- Support adaptive_sync HOT 1
- Secondary display only shows pointer HOT 1
- Migration to sr.ht HOT 1
- Kanshi doesn't apply display position configuration after disabling display HOT 3
- Error out on duplicate profile
- Feature request: Use regex in output name HOT 8
- Syntax to specify profile names can become ambiguous
- Sample configuration does not work HOT 2
- Feature Request: Variables/workspace support HOT 2
- Zombie processes HOT 4
- Profile not matched HOT 3
- Add support for matching make/model/serial
- Apply or select a given profile HOT 2
- Any particular reason why the sway-output syntax is different? HOT 2
- Sometimes kanshi does not restore display config when re-docking HOT 1
- allow storing profiles in separate files HOT 5
- Scale factor applied to output is different from the provided in the config file HOT 1
- Monitor disconnections not detected HOT 2
- invalid arguments for [email protected]_head HOT 9
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 kanshi.