mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Wayland: Ignore invalid scale values from compositor
This commit is contained in:
4
glfw/wl_monitor.c
vendored
4
glfw/wl_monitor.c
vendored
@@ -94,8 +94,8 @@ static void outputHandleScale(void* data,
|
||||
int32_t factor)
|
||||
{
|
||||
struct _GLFWmonitor *monitor = data;
|
||||
|
||||
monitor->wl.scale = factor;
|
||||
if (factor > 0 && factor < 24)
|
||||
monitor->wl.scale = factor;
|
||||
}
|
||||
|
||||
static const struct wl_output_listener outputListener = {
|
||||
|
||||
Reference in New Issue
Block a user