From d5ae9f4f8589466e73bda9f141de81fb3d13d9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 16 Feb 2012 23:38:14 -0500 Subject: [PATCH] shell: Restore basic fullscreen functionality This just fixes the default case. --- src/shell.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/shell.c b/src/shell.c index d5da6649..ce46eb16 100644 --- a/src/shell.c +++ b/src/shell.c @@ -503,11 +503,14 @@ shell_surface_set_fullscreen(struct wl_client *client, shsurf->saved_x = es->geometry.x; shsurf->saved_y = es->geometry.y; - weston_surface_set_position(es, - (output->current->width - es->geometry.width) / 2, - (output->current->height - es->geometry.height) / 2); es->fullscreen_output = output; shsurf->type = SHELL_SURFACE_FULLSCREEN; + + wl_resource_post_event(resource, + WL_SHELL_SURFACE_CONFIGURE, + weston_compositor_get_time(), 0, + es->output->current->width, + es->output->current->height); } static void @@ -1485,6 +1488,8 @@ configure(struct weston_shell *base, struct weston_surface *surface, /* fall through */ case SHELL_SURFACE_FULLSCREEN: center_on_output(surface, surface->fullscreen_output); + x = surface->geometry.x; + y = surface->geometry.y; break; case SHELL_SURFACE_MAXIMIZED: /*setting x, y and using configure to change that geometry*/