[mutter] place: Assign anchor rect using automatic copy
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] place: Assign anchor rect using automatic copy
- Date: Tue, 21 May 2019 09:34:35 +0000 (UTC)
commit 2b1acea1b0315a25779126a0c94269e000bcc50c
Author: Marco Trevisan (Treviño) <mail 3v1n0 net>
Date: Tue Mar 5 20:09:42 2019 +0100
place: Assign anchor rect using automatic copy
Set the offsets in different statements.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/469
src/core/place.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/core/place.c b/src/core/place.c
index 82c3a7b9e..7b4a6a7b3 100644
--- a/src/core/place.c
+++ b/src/core/place.c
@@ -622,12 +622,9 @@ meta_window_process_placement (MetaWindow *window,
window_height = placement_rule->height;
meta_window_get_frame_rect (parent, &parent_rect);
- anchor_rect = (MetaRectangle) {
- .x = parent_rect.x + placement_rule->anchor_rect.x,
- .y = parent_rect.y + placement_rule->anchor_rect.y,
- .width = placement_rule->anchor_rect.width,
- .height = placement_rule->anchor_rect.height,
- };
+ anchor_rect = placement_rule->anchor_rect;
+ anchor_rect.x += parent_rect.x;
+ anchor_rect.y += parent_rect.y;
/* Place at anchor point. */
if (placement_rule->anchor & META_PLACEMENT_ANCHOR_LEFT)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]