mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 14:21:57 +00:00
b3ca872cef
Currently, we scale the desktop up to the next largest integer, and rely on the wayland compositor to scale it back down to the correct size. This is obviously undesirable. In this commit, we attempt to detect the actual fractional scaling by finding the current active mode in wl_output, and dividing it by the logical screen size reported by xdg_output, taking into consideration screen rotation. We then use wp_viewporter to set the exact buffer and viewport sizes if fractional scaling is needed. |
||
---|---|---|
.. | ||
clipboard.c | ||
CMakeLists.txt | ||
cursor.c | ||
gl.c | ||
idle.c | ||
input.c | ||
output.c | ||
poll.c | ||
presentation.c | ||
registry.c | ||
shell_libdecor.c | ||
shell_xdg.c | ||
state.c | ||
wayland.c | ||
wayland.h | ||
window.c |