[mutter] window-wayland: Correct the buffer rect for frame extents
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window-wayland: Correct the buffer rect for frame extents
- Date: Thu, 26 Jun 2014 18:00:22 +0000 (UTC)
commit 077606c05729c3506ade2d87b4e733a11604c6ce
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jun 26 11:02:57 2014 -0400
window-wayland: Correct the buffer rect for frame extents
src/wayland/window-wayland.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/wayland/window-wayland.c b/src/wayland/window-wayland.c
index 5f13c4c..38cf6c8 100644
--- a/src/wayland/window-wayland.c
+++ b/src/wayland/window-wayland.c
@@ -214,8 +214,11 @@ meta_window_wayland_move_resize_internal (MetaWindow *window,
if (new_x != window->rect.x || new_y != window->rect.y)
{
*result |= META_MOVE_RESIZE_RESULT_MOVED;
- window->rect.x = window->buffer_rect.x = new_x;
- window->rect.y = window->buffer_rect.y = new_y;
+ window->rect.x = new_x;
+ window->rect.y = new_y;
+
+ window->buffer_rect.x = new_x - window->custom_frame_extents.left;
+ window->buffer_rect.y = new_y - window->custom_frame_extents.top;
}
}
}
@@ -361,8 +364,6 @@ meta_window_wayland_move_resize (MetaWindow *window,
rect.width = width;
rect.height = height;
- window->buffer_rect = rect;
-
if (rect.width != window->rect.width || rect.height != window->rect.height)
flags |= META_IS_RESIZE_ACTION;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]