summaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorDawid Gajownik <gajownik@gmail.com>2015-08-06 17:12:19 -0300
committerBryce Harrington <bryce@osg.samsung.com>2015-08-07 12:01:22 -0700
commit74a635b1ecf5efa437b5c8dc194a45528ce959ce (patch)
tree7fc0f88638e9906f9a93cb83f5a2689f434af4f6 /xwayland
parent5e653caa4a45a313a968a6a52437c0c382dc8b34 (diff)
downloadweston-74a635b1ecf5efa437b5c8dc194a45528ce959ce.tar.gz
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>
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/window-manager.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
index 5062cc9b..f9544d88 100644
--- a/xwayland/window-manager.c
+++ b/xwayland/window-manager.c
@@ -227,7 +227,7 @@ get_atom_name(xcb_connection_t *c, xcb_atom_t atom)
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 @@ weston_wm_window_draw_decoration(void *data)
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 @@ weston_wm_window_schedule_repaint(struct weston_wm_window *window)
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 @@ weston_wm_window_create(struct weston_wm *wm,
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);