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:
parent
7e71b8755a
commit
7f1c0b8a35
|
@ -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[] = {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue