summaryrefslogtreecommitdiff
path: root/src/compositor
diff options
context:
space:
mode:
Diffstat (limited to 'src/compositor')
-rw-r--r--src/compositor/compositor-xrender.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c
index d496c384..dae88fc3 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -1014,7 +1014,7 @@ window_has_shadow (MetaCompWindow *cw)
{
MetaCompScreen *info = meta_screen_get_compositor_data (cw->screen);
- if (info == NULL || info->have_shadows == FALSE)
+ if (info == NULL || !info->have_shadows)
return FALSE;
/* Always put a shadow around windows with a frame - This should override
@@ -2605,9 +2605,9 @@ process_property_notify (MetaCompositorXRender *compositor,
if (!cw)
return;
- if (meta_prop_get_cardinal (display, event->window,
- compositor->atom_net_wm_window_opacity,
- &value) == FALSE)
+ if (!meta_prop_get_cardinal (display, event->window,
+ compositor->atom_net_wm_window_opacity,
+ &value))
value = OPAQUE;
cw->opacity = (guint)value;
@@ -2769,7 +2769,7 @@ process_damage (MetaCompositorXRender *compositor,
repair_win (cw);
#ifdef USE_IDLE_REPAINT
- if (event->more == FALSE)
+ if (!event->more)
add_repair (compositor->display);
#endif
}