[mutter/wip/wayland] wayland: Set the flags when reporting the mode on an output
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/wayland] wayland: Set the flags when reporting the mode on an output
- Date: Mon, 30 Jan 2012 12:14:33 +0000 (UTC)
commit c07e6397d0e45ba4a7f79aa2fc9791c1b806a221
Author: Neil Roberts <neil linux intel com>
Date: Thu Jan 26 16:47:26 2012 +0000
wayland: Set the flags when reporting the mode on an output
Most of the wayland clients seem to need an output that has the
WL_OUTPUT_MODE_CURRENT flag set so that it can determine the size of
the screen when going fullscreen. The current code just creates a
single output so we can set the current flag on that.
src/wayland/meta-wayland.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index 73cd99d..840d967 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -549,7 +549,7 @@ meta_wayland_compositor_create_output (MetaWaylandCompositor *compositor,
bind_output);
mode = g_slice_new0 (MetaWaylandMode);
- mode->flags = 0;
+ mode->flags = WL_OUTPUT_MODE_CURRENT | WL_OUTPUT_MODE_PREFERRED;
mode->width = width;
mode->height = height;
mode->refresh = 60;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]