mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 10:08:00 +02:00
shell: Default to maximize/fullscreen on current output
This commit is contained in:
parent
971cbc8c9e
commit
94de680439
1 changed files with 4 additions and 0 deletions
|
|
@ -1358,6 +1358,8 @@ shell_surface_set_maximized(struct wl_client *client,
|
||||||
check whether the ouput is available */
|
check whether the ouput is available */
|
||||||
if (output_resource)
|
if (output_resource)
|
||||||
shsurf->output = output_resource->data;
|
shsurf->output = output_resource->data;
|
||||||
|
else if (es->output)
|
||||||
|
shsurf->output = es->output;
|
||||||
else
|
else
|
||||||
shsurf->output = get_default_output(es->compositor);
|
shsurf->output = get_default_output(es->compositor);
|
||||||
|
|
||||||
|
|
@ -1515,6 +1517,8 @@ shell_surface_set_fullscreen(struct wl_client *client,
|
||||||
|
|
||||||
if (output_resource)
|
if (output_resource)
|
||||||
shsurf->output = output_resource->data;
|
shsurf->output = output_resource->data;
|
||||||
|
else if (es->output)
|
||||||
|
shsurf->output = es->output;
|
||||||
else
|
else
|
||||||
shsurf->output = get_default_output(es->compositor);
|
shsurf->output = get_default_output(es->compositor);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue