[metacity] constraints: initialize window->user_rect in initial placement
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] constraints: initialize window->user_rect in initial placement
- Date: Mon, 19 Jan 2015 00:41:43 +0000 (UTC)
commit 67ddadf33d06c9d8c981eb252b47a7a2e0d3cbe8
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Jan 19 02:38:10 2015 +0200
constraints: initialize window->user_rect in initial placement
src/core/constraints.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/core/constraints.c b/src/core/constraints.c
index a937f05..b93f42e 100644
--- a/src/core/constraints.c
+++ b/src/core/constraints.c
@@ -535,6 +535,7 @@ place_window_if_needed(MetaWindow *window,
info->fixed_directions = FIXED_DIRECTION_NONE;
}
+
if (window->placed || did_placement)
{
if (window->maximize_horizontally_after_placement ||
@@ -579,6 +580,9 @@ place_window_if_needed(MetaWindow *window,
window->maximize_horizontally_after_placement = FALSE;
window->maximize_vertically_after_placement = FALSE;
}
+
+ window->user_rect = info->current;
+
if (window->minimize_after_placement)
meta_window_minimize (window);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]