From 1ce8b362de925f75b1d4792ed5c5ed711a422f54 Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Mon, 5 Oct 2015 12:47:29 -0400 Subject: [PATCH] clear the tiler for input region after setting to comp object. Summary: there is no need to set repeatedly input region even if it's already applied. and this patch remove the code to clear tiler from client's unmapped case. this fixes that tiler for input region is removed before applying it to comp object in case client is unmmaped yet. Reviewers: devilhorns, zmike Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3076 --- src/bin/e_comp_wl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index d4b0b5fa0..9f97e7412 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -1164,7 +1164,8 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state) } /* put state input into surface */ - if (state->input) + if ((state->input) && + (!eina_tiler_empty(state->input))) { Eina_Tiler *src, *tmp; @@ -1189,6 +1190,9 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state) e_comp_object_input_area_set(ec->frame, 0, 0, ec->w, ec->h); eina_tiler_free(tmp); + + /* clear input tiler */ + eina_tiler_clear(state->input); } return; @@ -1197,10 +1201,6 @@ unmapped: /* clear pending damages */ EINA_LIST_FREE(state->damages, dmg) eina_rectangle_free(dmg); - - /* clear input tiler */ - if (state->input) - eina_tiler_clear(state->input); } static void