summaryrefslogtreecommitdiff
path: root/src/compositor
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-01-28 21:07:41 +0100
committerLuke from DC <[email protected]>2022-02-13 21:51:59 +0000
commit936a0bdea9b651ad705552600779502dfec91127 (patch)
tree70186783e29abb2e0c7cc16d8d7ee3637208f2f8 /src/compositor
parent4f73014773f194331b441c6879fe7d8744d9d9b8 (diff)
downloadmarco-936a0bdea9b651ad705552600779502dfec91127.tar.bz2
marco-936a0bdea9b651ad705552600779502dfec91127.tar.xz
Remove TRUE, FALSE from if statement
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
}