[mutter/wip/wayland-work: 12/13] wayland: implement maximization
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/wayland-work: 12/13] wayland: implement maximization
- Date: Tue, 3 Sep 2013 15:02:55 +0000 (UTC)
commit 4eb6e7fbe3c96c557c51b336bffd8374cd0d3c39
Author: Giovanni Campagna <gcampagn redhat com>
Date: Tue Sep 3 12:02:15 2013 +0200
wayland: implement maximization
Simply delegate to the core code.
src/wayland/meta-wayland-surface.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index bc5fc85..4da6cb8 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -732,7 +732,16 @@ shell_surface_set_maximized (struct wl_client *client,
struct wl_resource *resource,
struct wl_resource *output)
{
- g_warning ("TODO: support shell_surface_set_maximized request");
+ MetaWaylandSurfaceExtension *shell_surface = wl_resource_get_user_data (resource);
+ MetaWaylandSurface *surface = shell_surface->surface;
+ MetaWaylandCompositor *compositor = surface->compositor;
+
+ /* NB: Surfaces from xwayland become managed based on X events. */
+ if (client == compositor->xwayland_client)
+ return;
+
+ ensure_surface_window (surface);
+ meta_window_maximize (surface->window);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]