<div dir="ltr">I'd like to see this merged for use with spec testing in Enlightenment.<br><br><div class="gmail_quote"><div dir="ltr">On Thu, Mar 9, 2017 at 3:50 PM Bryce Harrington <<a href="mailto:bryce@osg.samsung.com">bryce@osg.samsung.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Mar 08, 2017 at 11:58:20AM -0600, Derek Foreman wrote:<br class="gmail_msg">
> This is useful for testing compositor response to a client that<br class="gmail_msg">
> requests a maximized initial surface.<br class="gmail_msg">
><br class="gmail_msg">
> Signed-off-by: Derek Foreman <<a href="mailto:derekf@osg.samsung.com" class="gmail_msg" target="_blank">derekf@osg.samsung.com</a>><br class="gmail_msg">
<br class="gmail_msg">
Reviewed-by: Bryce Harrington <<a href="mailto:bryce@osg.samsung.com" class="gmail_msg" target="_blank">bryce@osg.samsung.com</a>><br class="gmail_msg">
<br class="gmail_msg">
> ---<br class="gmail_msg">
>  clients/terminal.c | 5 +++++<br class="gmail_msg">
>  1 file changed, 5 insertions(+)<br class="gmail_msg">
><br class="gmail_msg">
> diff --git a/clients/terminal.c b/clients/terminal.c<br class="gmail_msg">
> index 5c25fa8d..c5531790 100644<br class="gmail_msg">
> --- a/clients/terminal.c<br class="gmail_msg">
> +++ b/clients/terminal.c<br class="gmail_msg">
> @@ -49,6 +49,7 @@<br class="gmail_msg">
>  #include "window.h"<br class="gmail_msg">
><br class="gmail_msg">
>  static int option_fullscreen;<br class="gmail_msg">
> +static int option_maximize;<br class="gmail_msg">
>  static char *option_font;<br class="gmail_msg">
>  static int option_font_size;<br class="gmail_msg">
>  static char *option_term;<br class="gmail_msg">
> @@ -3048,6 +3049,8 @@ terminal_run(struct terminal *terminal, const char *path)<br class="gmail_msg">
><br class="gmail_msg">
>       if (option_fullscreen)<br class="gmail_msg">
>               window_set_fullscreen(terminal->window, 1);<br class="gmail_msg">
> +     else if (option_maximize)<br class="gmail_msg">
> +             window_set_maximized(terminal->window, 1);<br class="gmail_msg">
>       else<br class="gmail_msg">
>               terminal_resize(terminal, 80, 24);<br class="gmail_msg">
><br class="gmail_msg">
> @@ -3056,6 +3059,7 @@ terminal_run(struct terminal *terminal, const char *path)<br class="gmail_msg">
><br class="gmail_msg">
>  static const struct weston_option terminal_options[] = {<br class="gmail_msg">
>       { WESTON_OPTION_BOOLEAN, "fullscreen", 'f', &option_fullscreen },<br class="gmail_msg">
> +     { WESTON_OPTION_BOOLEAN, "maximized", 'm', &option_maximize },<br class="gmail_msg">
>       { WESTON_OPTION_STRING, "font", 0, &option_font },<br class="gmail_msg">
>       { WESTON_OPTION_INTEGER, "font-size", 0, &option_font_size },<br class="gmail_msg">
>       { WESTON_OPTION_STRING, "shell", 0, &option_shell },<br class="gmail_msg">
> @@ -3089,6 +3093,7 @@ int main(int argc, char *argv[])<br class="gmail_msg">
>                         ARRAY_LENGTH(terminal_options), &argc, argv) > 1) {<br class="gmail_msg">
>               printf("Usage: %s [OPTIONS]\n"<br class="gmail_msg">
>                      "  --fullscreen or -f\n"<br class="gmail_msg">
> +                    "  --maximized or -m\n"<br class="gmail_msg">
>                      "  --font=NAME\n"<br class="gmail_msg">
>                      "  --font-size=SIZE\n"<br class="gmail_msg">
>                      "  --shell=NAME\n", argv[0]);<br class="gmail_msg">
> --<br class="gmail_msg">
> 2.11.0<br class="gmail_msg">
><br class="gmail_msg">
> _______________________________________________<br class="gmail_msg">
> wayland-devel mailing list<br class="gmail_msg">
> <a href="mailto:wayland-devel@lists.freedesktop.org" class="gmail_msg" target="_blank">wayland-devel@lists.freedesktop.org</a><br class="gmail_msg">
> <a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
wayland-devel mailing list<br class="gmail_msg">
<a href="mailto:wayland-devel@lists.freedesktop.org" class="gmail_msg" target="_blank">wayland-devel@lists.freedesktop.org</a><br class="gmail_msg">
<a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br class="gmail_msg">
</blockquote></div></div>