[PATCH weston 02/10] compositor-wayland: Convert sprawl flag to boolean

Armin Krezović krezovic.armin at gmail.com
Sun Oct 9 15:30:23 UTC 2016


Signed-off-by: Armin Krezović <krezovic.armin at gmail.com>
---
 compositor/main.c              | 2 +-
 libweston/compositor-wayland.c | 4 ++--
 libweston/compositor-wayland.h | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/compositor/main.c b/compositor/main.c
index d081106..320305c 100644
--- a/compositor/main.c
+++ b/compositor/main.c
@@ -1578,7 +1578,7 @@ load_wayland_backend(struct weston_compositor *c,
 	config.cursor_theme = NULL;
 	config.display_name = NULL;
 	config.fullscreen = 0;
-	config.sprawl = 0;
+	config.sprawl = false;
 	config.use_pixman = false;
 
 	const struct weston_option wayland_options[] = {
diff --git a/libweston/compositor-wayland.c b/libweston/compositor-wayland.c
index d1ff8d7..32c44d4 100644
--- a/libweston/compositor-wayland.c
+++ b/libweston/compositor-wayland.c
@@ -76,7 +76,7 @@ struct wayland_backend {
 	} parent;
 
 	bool use_pixman;
-	int sprawl_across_outputs;
+	bool sprawl_across_outputs;
 	int fullscreen;
 
 	struct theme *theme;
@@ -2448,7 +2448,7 @@ backend_init(struct weston_compositor *compositor,
 		return -1;
 
 	if (new_config.sprawl || b->parent.fshell) {
-		b->sprawl_across_outputs = 1;
+		b->sprawl_across_outputs = true;
 		wl_display_roundtrip(b->parent.wl_display);
 
 		wl_list_for_each(poutput, &b->parent.output_list, link)
diff --git a/libweston/compositor-wayland.h b/libweston/compositor-wayland.h
index 9a9dde8..3ca875a 100644
--- a/libweston/compositor-wayland.h
+++ b/libweston/compositor-wayland.h
@@ -39,7 +39,7 @@ extern "C" {
 struct weston_wayland_backend_config {
 	struct weston_backend_config base;
 	bool use_pixman;
-	int sprawl;
+	bool sprawl;
 	char *display_name;
 	int fullscreen;
 	char *cursor_theme;
-- 
2.10.1



More information about the wayland-devel mailing list