manateelazycat / holo-layer

HoloLayer is a multimedia layer plugin designed specifically for Emacs
GNU General Public License v3.0
123 stars 18 forks source link

fix multimonitor issue on hyprland #29

Closed A7R7 closed 10 months ago

A7R7 commented 10 months ago

I edited the codes so that it's value turns from x and y distance to the whole desktop's (containning all the monitors' screen) left-up corner (A) to x and y distance to the focused monitor's left-up corner (B)

If you have only one monitor, then A and B should have no difference. But if you have a multi monitor setup, it's possible that A.x > B.x, A.y > B.y, which will lead to issues.

This fix adds a dependency on hyprland: jq

A7R7 commented 10 months ago

there's another way to fix this issue: when launching holo-layer, make it's window strench from the left-up most corner to the right-down most corner of all the monitors. Since it's unfocusable, it will hardly cause any issue to other windows.