buffer_flush: no flush for uniconic client 25/170825/2
authorJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 22 Feb 2018 07:26:56 +0000 (16:26 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 22 Feb 2018 11:27:39 +0000 (11:27 +0000)
client such as keyboard is handled in e_mod_tizen_wl_textinput
and it never be in iconic state(ec->exp_iconify.skip_iconify = 1)
once it keyboard window is hide, the buffer shall not be flushed

Change-Id: I0e1fb43c7a09f5d5b0800905ac92e0c327d14890
(cherry picked from commit 055424b6dd5fce9d0a770150a27c7ae476ef3702)

src/bin/e_policy_visibility.c

index a2dd0aa1a375fa204f223ab76105fd0bd2c9dc5d..3d00265f129f8fd74ce99719b2ef9c1a58820d70 100644 (file)
@@ -911,7 +911,7 @@ _e_vis_client_cb_evas_hide(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Obj
    VS_DBG(ec, "\tUPDATE ICONIC STATE: %s", STATE_STR(vc));
    vc->prepare_emitted = 0;
 
-   if (ec->exp_iconify.buffer_flush)
+   if (ec->iconic && ec->exp_iconify.buffer_flush)
      e_pixmap_buffer_clear(ec->pixmap, EINA_FALSE);
 }