Merge pull request #116236 from deralmas/the-chosen-one

Wayland: Only handle the current output mode
This commit is contained in:
Thaddeus Crews 2026-02-16 10:19:35 -06:00
commit 41f4ca3247
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -1304,6 +1304,10 @@ void WaylandThread::_wl_output_on_mode(void *data, struct wl_output *wl_output,
ScreenState *ss = (ScreenState *)data;
ERR_FAIL_NULL(ss);
if (!(flags & WL_OUTPUT_MODE_CURRENT)) {
return;
}
ss->pending_data.size.width = width;
ss->pending_data.size.height = height;