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:
committed by
Quentin Glidic
parent
7e71b8755a
commit
7f1c0b8a35
+1
-1
@@ -1578,7 +1578,7 @@ load_wayland_backend(struct weston_compositor *c,
|
|||||||
config.cursor_theme = NULL;
|
config.cursor_theme = NULL;
|
||||||
config.display_name = NULL;
|
config.display_name = NULL;
|
||||||
config.fullscreen = 0;
|
config.fullscreen = 0;
|
||||||
config.sprawl = 0;
|
config.sprawl = false;
|
||||||
config.use_pixman = false;
|
config.use_pixman = false;
|
||||||
|
|
||||||
const struct weston_option wayland_options[] = {
|
const struct weston_option wayland_options[] = {
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ struct wayland_backend {
|
|||||||
} parent;
|
} parent;
|
||||||
|
|
||||||
bool use_pixman;
|
bool use_pixman;
|
||||||
int sprawl_across_outputs;
|
bool sprawl_across_outputs;
|
||||||
int fullscreen;
|
int fullscreen;
|
||||||
|
|
||||||
struct theme *theme;
|
struct theme *theme;
|
||||||
@@ -2448,7 +2448,7 @@ backend_init(struct weston_compositor *compositor,
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (new_config.sprawl || b->parent.fshell) {
|
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_display_roundtrip(b->parent.wl_display);
|
||||||
|
|
||||||
wl_list_for_each(poutput, &b->parent.output_list, link)
|
wl_list_for_each(poutput, &b->parent.output_list, link)
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ extern "C" {
|
|||||||
struct weston_wayland_backend_config {
|
struct weston_wayland_backend_config {
|
||||||
struct weston_backend_config base;
|
struct weston_backend_config base;
|
||||||
bool use_pixman;
|
bool use_pixman;
|
||||||
int sprawl;
|
bool sprawl;
|
||||||
char *display_name;
|
char *display_name;
|
||||||
int fullscreen;
|
int fullscreen;
|
||||||
char *cursor_theme;
|
char *cursor_theme;
|
||||||
|
|||||||
Reference in New Issue
Block a user