discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=1ce8b362de925f75b1d4792ed5c5ed711a422f54

commit 1ce8b362de925f75b1d4792ed5c5ed711a422f54
Author: Seunghun Lee <beauty.positi...@gmail.com>
Date:   Mon Oct 5 12:47:29 2015 -0400

    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 d4b0b5f..9f97e74 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

-- 


Reply via email to