[gtk+/wip/attachment-rectangle: 9/10] mir: implement gdk_mir_window_impl_get_frame_extents ()
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/attachment-rectangle: 9/10] mir: implement gdk_mir_window_impl_get_frame_extents ()
- Date: Sat, 25 Jul 2015 03:51:31 +0000 (UTC)
commit 21bea4d30578a42eec46067fb019654ec731d261
Author: William Hua <william hua canonical com>
Date: Fri Jul 24 23:46:31 2015 -0400
mir: implement gdk_mir_window_impl_get_frame_extents ()
gdk/mir/gdkmirwindowimpl.c | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c
index 7b0cad7..c13f3b5 100644
--- a/gdk/mir/gdkmirwindowimpl.c
+++ b/gdk/mir/gdkmirwindowimpl.c
@@ -925,7 +925,23 @@ static void
gdk_mir_window_impl_get_frame_extents (GdkWindow *window,
GdkRectangle *rect)
{
- //g_printerr ("gdk_mir_window_impl_get_frame_extents window=%p\n", window);
+ GdkMirWindowImpl *impl = GDK_MIR_WINDOW_IMPL (window->impl);
+
+ if (!rect)
+ return;
+
+ rect->x = 0;
+ rect->y = 0;
+ rect->width = window->width;
+ rect->height = window->height;
+
+ while (impl->transient_for)
+ {
+ rect->x += impl->transient_x;
+ rect->y += impl->transient_y;
+ window = impl->transient_for;
+ impl = GDK_MIR_WINDOW_IMPL (window->impl);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]