From c9c6236d3786ed3f69f170b02523e08a91b7f644 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 18 Jan 2011 13:05:46 +0000 Subject: [PATCH] stage/x11: Do not check a boolean for equality Booleans should only be used like direct conditions, never as comparisons with TRUE or FALSE. --- clutter/x11/clutter-stage-x11.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clutter/x11/clutter-stage-x11.c b/clutter/x11/clutter-stage-x11.c index 56240cc99..5142e4085 100644 --- a/clutter/x11/clutter-stage-x11.c +++ b/clutter/x11/clutter-stage-x11.c @@ -19,9 +19,7 @@ * */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include @@ -577,7 +575,7 @@ clutter_stage_x11_set_cursor_visible (ClutterStageWindow *stage_window, { ClutterStageX11 *stage_x11 = CLUTTER_STAGE_X11 (stage_window); - stage_x11->is_cursor_visible = (cursor_visible == TRUE); + stage_x11->is_cursor_visible = !!cursor_visible; set_cursor_visible (stage_x11); }