[mutter] constraints: Complete fix for size hints constrainment
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] constraints: Complete fix for size hints constrainment
- Date: Mon, 5 May 2014 23:07:15 +0000 (UTC)
commit bc8799d7d7f240887086a16e8a400e049ea64df0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon May 5 19:06:47 2014 -0400
constraints: Complete fix for size hints constrainment
src/core/constraints.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/core/constraints.c b/src/core/constraints.c
index df9c219..bfc7090 100644
--- a/src/core/constraints.c
+++ b/src/core/constraints.c
@@ -950,6 +950,14 @@ constrain_size_increments (MetaWindow *window,
if (new_height < window->size_hints.min_height)
new_height += ((window->size_hints.min_height - new_height)/hi + 1)*hi;
+ {
+ client_rect.width = new_width;
+ client_rect.height = new_height;
+ meta_window_client_rect_to_frame_rect (window, &client_rect, &client_rect);
+ new_width = client_rect.width;
+ new_height = client_rect.height;
+ }
+
/* Figure out what original rect to pass to meta_rectangle_resize_with_gravity
* See bug 448183
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]