thrombe / hyprkool

Hyprland plugin to replicate the feel of kde activities and desktop grid layout
MIT License
57 stars 6 forks source link

Handle monitor scaling #19

Closed aaronjamt closed 1 day ago

aaronjamt commented 1 day ago

Multiplies by monitor scale factor to support monitors with different scale factors

thrombe commented 1 day ago

is the grid rendering broken without this scale factor? how do i reproduce and observe this broken behavior?

aaronjamt commented 1 day ago

is the grid rendering broken without this scale factor?

Yes, see screenshots.

how do i reproduce and observe this broken behavior?

Set your monitor to have a scale factor of something other than 1 in Hyprland config, i.e.: monitor=eDP-1,preferred,0x0,1.567

Example of the overview with my wallpaper enabled, with this GitHub issue open on the top-left workspace: image

Example of the overview with my wallpaper disabled, with the same page open: image

aaronjamt commented 1 day ago

Here is also a video demonstrating the current behavior: https://photos.app.goo.gl/q4DqG3aosFAvPaRH6

thrombe commented 1 day ago

thanks for the PR!

aaronjamt commented 1 day ago

Thanks for merging it! Glad to help.