[gtk+/wip/mir2] mir: release surface before rendering parent
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/mir2] mir: release surface before rendering parent
- Date: Wed, 4 Feb 2015 09:35:51 +0000 (UTC)
commit d9cdd6e06b5f8dfa93cb7e4c5ffd14fcdf57a766
Author: William Hua <william attente ca>
Date: Wed Feb 4 10:32:29 2015 +0100
mir: release surface before rendering parent
We should remove the mir and cairo surface before rendering the
transient_for, which will regenerate the cairo surface anyways.
Otherwise, we end up releasing both, when we only really want to get rid
of the mir surface.
gdk/mir/gdkmirwindowimpl.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c
index 80b6e56..1d56048 100644
--- a/gdk/mir/gdkmirwindowimpl.c
+++ b/gdk/mir/gdkmirwindowimpl.c
@@ -919,13 +919,12 @@ gdk_mir_window_impl_set_transient_for (GdkWindow *window,
window->x = impl->transient_x;
window->y = impl->transient_y;
+ /* Remove surface if we had made one before this was set */
+ ensure_no_surface (window);
+
/* Redraw onto parent */
redraw_transient (window);
}
-
- /* Remove surface if we had made one before this was set */
- if (should_render_in_parent (window))
- ensure_no_surface (window);
}
/* TODO: Remove once we have proper transient window support. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]