[mutter] MetaWaylandSurface: Create the window when creating wl_shell_surface
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] MetaWaylandSurface: Create the window when creating wl_shell_surface
- Date: Tue, 2 Jun 2015 02:29:01 +0000 (UTC)
commit 64cf87cfe1c1d9ff8107181cb26bd41b7bc242d8
Author: Jonas Ådahl <jadahl gmail com>
Date: Mon Jun 1 17:22:57 2015 +0800
MetaWaylandSurface: Create the window when creating wl_shell_surface
Some clients will do things like set_toplevel before committing the
buffer, so we need to have a window to manipulate before that.
https://bugzilla.gnome.org/show_bug.cgi?id=750256
src/wayland/meta-wayland-surface.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index cfd112d..42ebab4 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -1539,6 +1539,7 @@ wl_shell_get_shell_surface (struct wl_client *client,
struct wl_resource *surface_resource)
{
MetaWaylandSurface *surface = wl_resource_get_user_data (surface_resource);
+ MetaWindow *window;
if (surface->wl_shell_surface != NULL)
{
@@ -1556,6 +1557,9 @@ wl_shell_get_shell_surface (struct wl_client *client,
surface->wl_shell_surface = wl_resource_create (client, &wl_shell_surface_interface,
wl_resource_get_version (resource), id);
wl_resource_set_implementation (surface->wl_shell_surface, &meta_wayland_wl_shell_surface_interface,
surface, wl_shell_surface_destructor);
+
+ window = meta_window_wayland_new (meta_get_display (), surface);
+ meta_wayland_surface_set_window (surface, window);
}
static const struct wl_shell_interface meta_wayland_wl_shell_interface = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]