Merge pull request #116236 from deralmas/the-chosen-one
Wayland: Only handle the current output mode
This commit is contained in:
commit
41f4ca3247
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue