mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-15 18:18:07 +02:00
Follow set_fullscreen protocol change
This commit is contained in:
parent
d6bcd7daa7
commit
f856fd2f93
2 changed files with 6 additions and 2 deletions
|
|
@ -790,7 +790,8 @@ window_set_type(struct window *window)
|
|||
|
||||
switch (window->type) {
|
||||
case TYPE_FULLSCREEN:
|
||||
wl_shell_surface_set_fullscreen(window->shell_surface);
|
||||
wl_shell_surface_set_fullscreen(window->shell_surface,
|
||||
WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, 0, NULL);
|
||||
break;
|
||||
case TYPE_MAXIMIZED:
|
||||
wl_shell_surface_set_maximized(window->shell_surface, NULL);
|
||||
|
|
|
|||
|
|
@ -486,7 +486,10 @@ shell_surface_set_maximized(struct wl_client *client,
|
|||
|
||||
static void
|
||||
shell_surface_set_fullscreen(struct wl_client *client,
|
||||
struct wl_resource *resource)
|
||||
struct wl_resource *resource,
|
||||
uint32_t method,
|
||||
uint32_t framerate,
|
||||
struct wl_resource *output_resource)
|
||||
{
|
||||
struct shell_surface *shsurf = resource->data;
|
||||
struct weston_surface *es = shsurf->surface;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue