rdp: Set current mode flag properly in rdp_output_set_size
ensure_matching_mode() pays no attention to flags, we must set them on the returned result afterwards. This could be reproduced by making the initial connection to an rdp session using the same mode it picked at startup. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
50d42f88da
commit
42a2c0502f
@ -414,11 +414,11 @@ rdp_output_set_size(struct weston_output *base,
|
||||
/* We can only be called once. */
|
||||
assert(!output->base.current_mode);
|
||||
|
||||
initMode.flags = WL_OUTPUT_MODE_CURRENT | WL_OUTPUT_MODE_PREFERRED;
|
||||
initMode.width = width;
|
||||
initMode.height = height;
|
||||
initMode.refresh = rdpBackend->rdp_monitor_refresh_rate;
|
||||
currentMode = ensure_matching_mode(&output->base, &initMode);
|
||||
currentMode->flags = WL_OUTPUT_MODE_PREFERRED | WL_OUTPUT_MODE_CURRENT;
|
||||
|
||||
output->base.current_mode = output->base.native_mode = currentMode;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user