compositor-wayland: assign the correct mode
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
index 35e99a6..3cd308f 100644
--- a/src/compositor-wayland.c
+++ b/src/compositor-wayland.c
@@ -1149,7 +1149,7 @@
if (poutput->current_mode) {
mode = poutput->current_mode;
} else if (poutput->preferred_mode) {
- mode = poutput->current_mode;
+ mode = poutput->preferred_mode;
} else if (!wl_list_empty(&poutput->mode_list)) {
mode = container_of(poutput->mode_list.next,
struct weston_mode, link);