mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
place: Assign anchor rect using automatic copy
Set the offsets in different statements. https://gitlab.gnome.org/GNOME/mutter/merge_requests/469
This commit is contained in:
parent
91aee3d5c4
commit
2b1acea1b0
@ -622,12 +622,9 @@ meta_window_process_placement (MetaWindow *window,
|
|||||||
window_height = placement_rule->height;
|
window_height = placement_rule->height;
|
||||||
meta_window_get_frame_rect (parent, &parent_rect);
|
meta_window_get_frame_rect (parent, &parent_rect);
|
||||||
|
|
||||||
anchor_rect = (MetaRectangle) {
|
anchor_rect = placement_rule->anchor_rect;
|
||||||
.x = parent_rect.x + placement_rule->anchor_rect.x,
|
anchor_rect.x += parent_rect.x;
|
||||||
.y = parent_rect.y + placement_rule->anchor_rect.y,
|
anchor_rect.y += parent_rect.y;
|
||||||
.width = placement_rule->anchor_rect.width,
|
|
||||||
.height = placement_rule->anchor_rect.height,
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Place at anchor point. */
|
/* Place at anchor point. */
|
||||||
if (placement_rule->anchor & META_PLACEMENT_ANCHOR_LEFT)
|
if (placement_rule->anchor & META_PLACEMENT_ANCHOR_LEFT)
|
||||||
|
Loading…
Reference in New Issue
Block a user