1
0
Fork 0

stage/x11: Do not check a boolean for equality

Booleans should only be used like direct conditions, never as
comparisons with TRUE or FALSE.
This commit is contained in:
Emmanuele Bassi 2011-01-18 13:05:46 +00:00
parent ee15d0d2d0
commit c9c6236d37

View file

@ -19,9 +19,7 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif
#include <math.h> #include <math.h>
@ -577,7 +575,7 @@ clutter_stage_x11_set_cursor_visible (ClutterStageWindow *stage_window,
{ {
ClutterStageX11 *stage_x11 = CLUTTER_STAGE_X11 (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); set_cursor_visible (stage_x11);
} }