e_comp_wl: wait for the requesting client to be mapped before applying input region 01/219601/2
authorjeon <jhyuni.kang@samsung.com>
Fri, 6 Dec 2019 08:16:10 +0000 (17:16 +0900)
committerjeon <jhyuni.kang@samsung.com>
Fri, 6 Dec 2019 10:25:29 +0000 (19:25 +0900)
  - 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 960185cc9acf42aa113aae0ece25e48ab55c3560..f957d438a44946147734aaef3eb4db91e89cd11e 100644 (file)
@@ -2535,7 +2535,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;