nwg-piotr / nwg-displays

Output management utility for sway and Hyprland.
MIT License
336 stars 22 forks source link

initial resolution fix #8

Closed nvski closed 1 year ago

nvski commented 1 year ago

If scale is not 1, "size" boxes were initialized with already scaled values instead of physical display resolution; "modes" box was initialized empty and needed to be set manually. This might be the case of #3

nwg-piotr commented 1 year ago

Well, I didn't dig into it much, but it doesn't seem to work well. My actual outputs setup looks like this:

2022-08-21-021417_screenshot

After your changes the program displays this:

2022-08-21-021548_screenshot

Rotation seems to be broken.

nvski commented 1 year ago

I decoupled physical and logical resolutions everywhere to overcome this rotation bug. By physical I mean width and height from the output mode (not affected by rotations and scaling), and logical size is the output rectangle, embedded into the sway's global coordinate space.

nwg-piotr commented 1 year ago

The Indicator window is broken: takes all the screen.

[edit] OK, I'll fix it.