diff options
author | Youri Mouton <yrmt@edgebsd.org> | 2015-03-27 22:30:20 +0100 |
---|---|---|
committer | Olivier Fourdan <fourdan@xfce.org> | 2015-03-27 22:30:20 +0100 |
commit | 023763f1d217dcfe738ffd5c3fea9511d0ea963c (patch) | |
tree | 4ac6d97c874270329491a2ea0e485d837009ffc0 | |
parent | fc38533582d972ffc826b5741449306a4234fbad (diff) | |
download | xfwm4-023763f1d217dcfe738ffd5c3fea9511d0ea963c.tar.gz |
Fix compiler warnings
Bug: 11723
-rw-r--r-- | src/client.c | 2 | ||||
-rw-r--r-- | src/netwm.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/client.c b/src/client.c index fc40c6d9d..e3054f58c 100644 --- a/src/client.c +++ b/src/client.c @@ -1804,7 +1804,7 @@ clientFrame (DisplayInfo *display_info, Window w, gboolean recapture) if (!FLAG_TEST (c->xfwm_flags, XFWM_FLAG_SESSION_MANAGED)) { clientCoordGravitate (c, c->gravity, APPLY, &c->x, &c->y); - if ((attr.map_state == IsUnmapped)) + if (attr.map_state == IsUnmapped) { clientInitPosition (c); } diff --git a/src/netwm.c b/src/netwm.c index 335920131..93ff43f57 100644 --- a/src/netwm.c +++ b/src/netwm.c @@ -189,27 +189,27 @@ clientGetNetState (Client * c) i = 0; while (i < n_atoms) { - if ((atoms[i] == display_info->atoms[NET_WM_STATE_SHADED])) + if (atoms[i] == display_info->atoms[NET_WM_STATE_SHADED]) { TRACE ("clientGetNetState : shaded"); FLAG_SET (c->flags, CLIENT_FLAG_SHADED); } - else if ((atoms[i] == display_info->atoms[NET_WM_STATE_STICKY])) + else if (atoms[i] == display_info->atoms[NET_WM_STATE_STICKY]) { TRACE ("clientGetNetState : sticky"); FLAG_SET (c->flags, CLIENT_FLAG_STICKY); } - else if ((atoms[i] == display_info->atoms[NET_WM_STATE_MAXIMIZED_HORZ])) + else if (atoms[i] == display_info->atoms[NET_WM_STATE_MAXIMIZED_HORZ]) { TRACE ("clientGetNetState : maximized horiz"); FLAG_SET (c->flags, CLIENT_FLAG_MAXIMIZED_HORIZ | CLIENT_FLAG_RESTORE_SIZE_POS); } - else if ((atoms[i] == display_info->atoms[NET_WM_STATE_MAXIMIZED_VERT])) + else if (atoms[i] == display_info->atoms[NET_WM_STATE_MAXIMIZED_VERT]) { TRACE ("clientGetNetState : maximized vert"); FLAG_SET (c->flags, CLIENT_FLAG_MAXIMIZED_VERT | CLIENT_FLAG_RESTORE_SIZE_POS); } - else if ((atoms[i] == display_info->atoms[NET_WM_STATE_FULLSCREEN])) + else if (atoms[i] == display_info->atoms[NET_WM_STATE_FULLSCREEN]) { if (!FLAG_TEST_ALL (c->flags, CLIENT_FLAG_ABOVE | CLIENT_FLAG_BELOW)) { @@ -217,7 +217,7 @@ clientGetNetState (Client * c) FLAG_SET (c->flags, CLIENT_FLAG_FULLSCREEN); } } - else if ((atoms[i] == display_info->atoms[NET_WM_STATE_ABOVE])) + else if (atoms[i] == display_info->atoms[NET_WM_STATE_ABOVE]) { if (!FLAG_TEST_ALL (c->flags, CLIENT_FLAG_FULLSCREEN | CLIENT_FLAG_BELOW)) { @@ -225,7 +225,7 @@ clientGetNetState (Client * c) FLAG_SET (c->flags, CLIENT_FLAG_ABOVE); } } - else if ((atoms[i] == display_info->atoms[NET_WM_STATE_BELOW])) + else if (atoms[i] == display_info->atoms[NET_WM_STATE_BELOW]) { if (!FLAG_TEST_ALL (c->flags, CLIENT_FLAG_ABOVE | CLIENT_FLAG_FULLSCREEN)) { |