From 94de680439b793093a6b3595155706a587160993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 18 Jul 2012 09:54:04 -0400 Subject: [PATCH] shell: Default to maximize/fullscreen on current output --- src/shell.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shell.c b/src/shell.c index 40cef14f..fca280ef 100644 --- a/src/shell.c +++ b/src/shell.c @@ -1358,6 +1358,8 @@ shell_surface_set_maximized(struct wl_client *client, check whether the ouput is available */ if (output_resource) shsurf->output = output_resource->data; + else if (es->output) + shsurf->output = es->output; else shsurf->output = get_default_output(es->compositor); @@ -1515,6 +1517,8 @@ shell_surface_set_fullscreen(struct wl_client *client, if (output_resource) shsurf->output = output_resource->data; + else if (es->output) + shsurf->output = es->output; else shsurf->output = get_default_output(es->compositor);