compositor-wayland: assign the correct mode
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
8cbd8f3390
commit
67072d03d3
@@ -1149,7 +1149,7 @@ wayland_output_create_for_parent_output(struct wayland_compositor *c,
|
|||||||
if (poutput->current_mode) {
|
if (poutput->current_mode) {
|
||||||
mode = poutput->current_mode;
|
mode = poutput->current_mode;
|
||||||
} else if (poutput->preferred_mode) {
|
} else if (poutput->preferred_mode) {
|
||||||
mode = poutput->current_mode;
|
mode = poutput->preferred_mode;
|
||||||
} else if (!wl_list_empty(&poutput->mode_list)) {
|
} else if (!wl_list_empty(&poutput->mode_list)) {
|
||||||
mode = container_of(poutput->mode_list.next,
|
mode = container_of(poutput->mode_list.next,
|
||||||
struct weston_mode, link);
|
struct weston_mode, link);
|
||||||
|
|||||||
Reference in New Issue
Block a user