From 860906246e56c5ab817760329cbfa0d65e944cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 5 Feb 2020 15:40:06 +0100 Subject: [PATCH] clutter/cogl/stage: Simplify swap_event boolean logic We'll expect a swap event if any of the view paints resulted in a swap; make the logic dealing with this clearer by making changing the less vilible '|| swap_event' postfix with a up front '|=' operator. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1042 --- clutter/clutter/cogl/clutter-stage-cogl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c index 40258995d..5beced17c 100644 --- a/clutter/clutter/cogl/clutter-stage-cogl.c +++ b/clutter/clutter/cogl/clutter-stage-cogl.c @@ -1090,8 +1090,7 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window) { ClutterStageView *view = l->data; - swap_event = - clutter_stage_cogl_redraw_view (stage_window, view) || swap_event; + swap_event |= clutter_stage_cogl_redraw_view (stage_window, view); } _clutter_stage_emit_after_paint (stage_cogl->wrapper);