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