compositor-wayland: Convert sprawl flag to boolean

Signed-off-by: Armin Krezović <krezovic.armin@gmail.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Armin Krezović 2016-10-09 17:30:23 +02:00 committed by Quentin Glidic
parent 7e71b8755a
commit 7f1c0b8a35
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
3 changed files with 4 additions and 4 deletions

View File

@ -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[] = {

View File

@ -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)

View File

@ -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;