force pixmap clear when hiding an x11 window
authorMike Blumenkrantz <zmike@osg.samsung.com>
Sat, 26 Sep 2015 03:41:29 +0000 (23:41 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Sat, 26 Sep 2015 03:41:29 +0000 (23:41 -0400)
failure to refetch this upon remapping the window will result in
a broken pixmap which cannot be rendered

src/bin/e_comp_x.c

index 993c6d7..98e7b2b 100644 (file)
@@ -977,7 +977,10 @@ _e_comp_x_evas_hide_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UN
      evas_object_hide(tmp->frame);
 
    if (ec->unredirected_single || ec->iconic)
-     ecore_x_window_hide(_e_comp_x_client_window_get(ec));
+     {
+        ecore_x_window_hide(_e_comp_x_client_window_get(ec));
+        e_pixmap_clear(ec->pixmap);
+     }
 
    if (e_comp_config_get()->send_flush)
      ecore_x_e_comp_flush_send(e_client_util_win_get(ec));