weston: fix boolean wayland backend options
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 20 Oct 2017 13:22:44 +0000 (16:22 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 23 Oct 2017 07:29:42 +0000 (10:29 +0300)
commitaedcd8ebb08de9ea9d4d6ebdb37b3b6f8368b83b
tree9c668681b98704289be088a5dd4785b54ef16027
parentefade28db954ad02ac283a626238df04bae146da
weston: fix boolean wayland backend options

Surprisingly, WESTON_OPTION_BOOLEAN uses the type int32_t, not bool.
Passing in a pointer bool does not end well. Fix this to pass in
pointers as parse_options() expects.

This fixes a bug where 'weston --use-pixman --sprawl' would work but
'weston --sprawl --use-pixman' would ignore the --sprawl option.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Acked-by: Daniel Stone <daniels@collabora.com>
compositor/main.c