Wayland: Ignore invalid scale values from compositor

This commit is contained in:
Kovid Goyal 2019-03-19 14:30:43 +05:30
parent 5c75ac0a96
commit c129dd9331
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

2
glfw/wl_monitor.c vendored
View File

@ -94,7 +94,7 @@ static void outputHandleScale(void* data,
int32_t factor) int32_t factor)
{ {
struct _GLFWmonitor *monitor = data; struct _GLFWmonitor *monitor = data;
if (factor > 0 && factor < 24)
monitor->wl.scale = factor; monitor->wl.scale = factor;
} }