From 1b6dc7e5815d3aa02fd1d01b1334c03473e5cf72 Mon Sep 17 00:00:00 2001 From: Mihail Grigorov Date: Wed, 14 Feb 2018 17:12:42 +0200 Subject: [PATCH] ivi-shell: event_mask must not be cleared after emit Signed-off-by: Mihail Grigorov --- ivi-shell/ivi-layout.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c index 64e4ead8..7d13fc88 100644 --- a/ivi-shell/ivi-layout.c +++ b/ivi-shell/ivi-layout.c @@ -917,20 +917,6 @@ commit_transition(struct ivi_layout* layout) } static void -send_surface_prop(struct ivi_layout_surface *ivisurf) -{ - wl_signal_emit(&ivisurf->property_changed, ivisurf); - ivisurf->pending.prop.event_mask = 0; -} - -static void -send_layer_prop(struct ivi_layout_layer *ivilayer) -{ - wl_signal_emit(&ivilayer->property_changed, ivilayer); - ivilayer->pending.prop.event_mask = 0; -} - -static void send_prop(struct ivi_layout *layout) { struct ivi_layout_layer *ivilayer = NULL; @@ -938,12 +924,12 @@ send_prop(struct ivi_layout *layout) wl_list_for_each_reverse(ivilayer, &layout->layer_list, link) { if (ivilayer->prop.event_mask) - send_layer_prop(ivilayer); + wl_signal_emit(&ivilayer->property_changed, ivilayer); } wl_list_for_each_reverse(ivisurf, &layout->surface_list, link) { if (ivisurf->prop.event_mask) - send_surface_prop(ivisurf); + wl_signal_emit(&ivisurf->property_changed, ivisurf); } } -- 2.11.0