From e3001794f26458685d7352e787a118c75732a6c4 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 1 May 2014 19:11:17 -0400 Subject: [PATCH] window-x11: Clean up formatting a bit more --- src/x11/window-x11.c | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c index 9d04d2d90..cca33d874 100644 --- a/src/x11/window-x11.c +++ b/src/x11/window-x11.c @@ -487,14 +487,8 @@ meta_window_apply_session_info (MetaWindow *window, flags = META_IS_MOVE_ACTION | META_IS_RESIZE_ACTION; - adjust_for_gravity (window, - FALSE, - gravity, - &rect); - - meta_window_move_resize_internal (window, - flags, - gravity, + adjust_for_gravity (window, FALSE, gravity, &rect); + meta_window_move_resize_internal (window, flags, gravity, rect.x, rect.y, rect.width, rect.height); } } @@ -549,14 +543,8 @@ meta_window_x11_manage (MetaWindow *window) rect.width = window->size_hints.width; rect.height = window->size_hints.height; - adjust_for_gravity (window, - TRUE, - gravity, - &rect); - - meta_window_move_resize_internal (window, - flags, - gravity, + adjust_for_gravity (window, TRUE, gravity, &rect); + meta_window_move_resize_internal (window, flags, gravity, rect.x, rect.y, rect.width, rect.height); } } @@ -2090,14 +2078,8 @@ meta_window_move_resize_request (MetaWindow *window, rect.width = width; rect.height = height; - adjust_for_gravity (window, - TRUE, - gravity, - &rect); - - meta_window_move_resize_internal (window, - flags, - gravity, + adjust_for_gravity (window, TRUE, gravity, &rect); + meta_window_move_resize_internal (window, flags, gravity, rect.x, rect.y, rect.width, rect.height); }