wl_desktop_shell: reset ec's visibility.last_sent_type value when it is unmapped 06/187306/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 22 Aug 2018 01:47:13 +0000 (10:47 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 22 Aug 2018 01:47:13 +0000 (10:47 +0900)
Change-Id: I2c9130b36096189833975f6a4f129b7293f4d5dd

src/modules/wl_desktop_shell/e_mod_main.c

index 76c3c714ce7aa0ed30d000729746e44420951c80..76bf6207c0694d60c777a6c8a038a149b8fa9c6a 100644 (file)
@@ -615,6 +615,7 @@ _e_shell_surface_unmap(struct wl_resource *resource)
         ec->visible = EINA_FALSE;
         evas_object_hide(ec->frame);
         ec->comp_data->mapped = EINA_FALSE;
+        ec->visibility.last_sent_type = E_VISIBILITY_UNKNOWN;
 
         ELOGF("SHELL",
               "Unmap window  |win:0x%08x|ec_size:%d,%d",
@@ -1288,6 +1289,7 @@ _e_xdg_shell_surface_unmap(struct wl_resource *resource)
         ec->visible = EINA_FALSE;
         evas_object_hide(ec->frame);
         ec->comp_data->mapped = EINA_FALSE;
+        ec->visibility.last_sent_type = E_VISIBILITY_UNKNOWN;
 
         ELOGF("SHELL",
               "Unmap window  |win:0x%08x|ec_size:%d,%d",