[Xfce4-commits] [xfce/xfwm4] 01/01: Fix compiler warnings
noreply at xfce.org
noreply at xfce.org
Fri Mar 27 22:40:29 CET 2015
This is an automated email from the git hooks/post-receive script.
olivier pushed a commit to branch xfce-4.12
in repository xfce/xfwm4.
commit 1115091535d0c56e6fd565ed36b33af37aed4f69
Author: Youri Mouton <yrmt at edgebsd.org>
Date: Fri Mar 27 22:30:20 2015 +0100
Fix compiler warnings
Bug: 11723
---
src/client.c | 2 +-
src/netwm.c | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/client.c b/src/client.c
index 38ecc6f..12106ce 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 3359201..93ff43f 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))
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list