Coding style fixes
- opening braces are on the same line as the if statement
- opening braces are not on the same line as the function name
- space between for/while/if and opening parenthesis
Signed-off-by: Dawid Gajownik <gajownik@gmail.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index 5062cc9..f9544d8 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -227,7 +227,7 @@
cookie = xcb_get_atom_name (c, atom);
reply = xcb_get_atom_name_reply (c, cookie, &e);
- if(reply) {
+ if (reply) {
snprintf(buffer, sizeof buffer, "%.*s",
xcb_get_atom_name_name_length (reply),
xcb_get_atom_name_name (reply));
@@ -1087,7 +1087,7 @@
if (window->surface) {
pixman_region32_fini(&window->surface->pending.opaque);
- if(window->has_alpha) {
+ if (window->has_alpha) {
pixman_region32_init(&window->surface->pending.opaque);
} else {
/* We leave an extra pixel around the X window area to
@@ -1131,7 +1131,7 @@
if (window->surface != NULL) {
weston_wm_window_get_frame_size(window, &width, &height);
pixman_region32_fini(&window->surface->pending.opaque);
- if(window->has_alpha) {
+ if (window->has_alpha) {
pixman_region32_init(&window->surface->pending.opaque);
} else {
pixman_region32_init_rect(&window->surface->pending.opaque, 0, 0,
@@ -1209,7 +1209,7 @@
geometry_reply = xcb_get_geometry_reply(wm->conn, geometry_cookie, NULL);
/* technically we should use XRender and check the visual format's
alpha_mask, but checking depth is simpler and works in all known cases */
- if(geometry_reply != NULL)
+ if (geometry_reply != NULL)
window->has_alpha = geometry_reply->depth == 32;
free(geometry_reply);