e_comp_wl: wait for the requesting client to be mapped before applying input region 12/219612/2 accepted/tizen/5.5/unified/20191209.050136 submit/tizen_5.5/20191206.105723
authorjeon <jhyuni.kang@samsung.com>
Fri, 6 Dec 2019 08:16:10 +0000 (17:16 +0900)
committerJeongHyun Kang <jhyuni.kang@samsung.com>
Fri, 6 Dec 2019 10:25:54 +0000 (10:25 +0000)
  - Basically setting input region for a client surface will only be applied
    only when the surface is attached.
  - Otherwise the request for setting input region for the client surface
    will not be applied as the server doesn't know the exact size of the surface.
  - Therefore we apply the input region from the client when the surface of the client is mapped.

Change-Id: I2a85e43d6214839e36dfda9c52249940d758ee79

src/bin/e_comp_wl.c

index 3f8de250276b36032572529a797c5bdac6bee56a..cce047f84bfa283db8f8a56a9b4fc3b1dfe43919 100644 (file)
@@ -2527,7 +2527,8 @@ _e_comp_wl_surface_state_commit(E_Client *ec, E_Comp_Wl_Surface_State *state)
 
    /* put state input into surface */
    if ((state->input) &&
-       (!eina_tiler_empty(state->input)))
+       (!eina_tiler_empty(state->input)) &&
+       ec->first_mapped)
      {
         Eina_Tiler *src, *tmp;
         int sw, sh;