gnif / LookingGlass

An extremely low latency KVMFR (KVM FrameRelay) implementation for guests with VGA PCI Passthrough.
GNU General Public License v2.0
4.64k stars 257 forks source link

Client window fails to open under Wayland with scaling enabled #1113

Closed kamplom closed 5 months ago

kamplom commented 5 months ago

Issue

Client window fails to open under Wayland with scaling enabled. Client does not crash. Seems that has to do with the speed hyprland, the wayland compositor, resizes the window upon opening, since it is not reproducible with plasma-wayland. See https://github.com/libsdl-org/SDL/issues/9283.

Client output:

00:00:00.108 [I]               egl.c:887  | egl_renderStartup              | EGL APIs: OpenGL_ES OpenGL
00:00:00.108 [I]               egl.c:958  | egl_renderStartup              | Debug messages disabled, enable with egl:debug=true
00:00:00.123 [I]           eglutil.c:35   | swapWithDamageInit             | Using EGL_KHR_swap_buffers_with_damage
wp_viewport@63: error 2: source rectangle out of buffer bounds
00:00:00.183 [I]              main.c:1491 | lg_run                         | ================================================================================
00:00:00.183 [I]              main.c:1492 | lg_run                         | The host application seems to not be running

Steps to reproduce

kamplom commented 5 months ago

Tested wlWm.scale variable and it shows the right scale, 1.066667 in my case. My suggestions is then use the same solution as the mentioned issue. Will do a PR.