galister / wlx-overlay-s

Access your Wayland/X11 desktop from Monado/WiVRn/SteamVR. Now with Vulkan!
GNU General Public License v3.0
100 stars 18 forks source link

Save screen scaling changes #16

Closed stuin closed 3 months ago

galister commented 3 months ago

does this actually change anything for you?

saved_scale just stores the last scale that was applied to the overlay's transform, so what we can find the scale without having to do an expensive square root operation.

it doesn't actually persist the scale between sessions, nor it is used by screens in any way, as far as i remember

stuin commented 3 months ago

Using monado, if I hide a screen and then show it again it gets completely reset. With this change it still resets position to in front of me but it keeps any scaling I have done in the session. If I long hold the screen button it fully resets size again.

galister commented 3 months ago

alright!