[mutter/wip/wayland-display: 58/62] MetaWayland: don't free the wayland surface before we repick
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/wayland-display: 58/62] MetaWayland: don't free the wayland surface before we repick
- Date: Thu, 8 Aug 2013 08:32:58 +0000 (UTC)
commit f3b947ff55a4f9a9bbf39c4319a168efc82997f8
Author: Giovanni Campagna <gcampagn redhat com>
Date: Mon Jul 29 10:59:24 2013 +0200
MetaWayland: don't free the wayland surface before we repick
The wayland surface is still referenced by the pointer and
keyboard focus, which need to access it to emit the appropriate
leave events.
src/wayland/meta-wayland.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index 608beb4..3212af9 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -475,12 +475,12 @@ meta_wayland_surface_free (MetaWaylandSurface *surface)
&surface->pending.frame_callback_list, link)
wl_resource_destroy (cb->resource);
- g_slice_free (MetaWaylandSurface, surface);
-
meta_wayland_compositor_repick (compositor);
if (compositor->implicit_grab_surface == surface)
compositor->implicit_grab_surface = compositor->seat->pointer.current;
+
+ g_slice_free (MetaWaylandSurface, surface);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]