[PATCH] server: Add missing braces.
Andrey Gusev
andrey.goosev at gmail.com
Tue Aug 3 06:00:46 CDT 2021
Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
---
server/window.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/server/window.c b/server/window.c
index 3a88b7f34fa..5882d900e08 100644
--- a/server/window.c
+++ b/server/window.c
@@ -1710,12 +1710,15 @@ static void set_window_pos( struct window *win, struct window *previous,
int old_size = old_client_rect.right - old_client_rect.left;
int new_size = win->client_rect.right - win->client_rect.left;
- if (old_size != new_size) LIST_FOR_EACH_ENTRY( child, &win->children, struct window, entry )
+ if (old_size != new_size)
{
- offset_rect( &child->window_rect, new_size - old_size, 0 );
- offset_rect( &child->visible_rect, new_size - old_size, 0 );
- offset_rect( &child->surface_rect, new_size - old_size, 0 );
- offset_rect( &child->client_rect, new_size - old_size, 0 );
+ LIST_FOR_EACH_ENTRY( child, &win->children, struct window, entry )
+ {
+ offset_rect( &child->window_rect, new_size - old_size, 0 );
+ offset_rect( &child->visible_rect, new_size - old_size, 0 );
+ offset_rect( &child->surface_rect, new_size - old_size, 0 );
+ offset_rect( &child->client_rect, new_size - old_size, 0 );
+ }
}
}
--
2.31.1
More information about the wine-devel
mailing list