discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=06f794bfe6b55957e869320c60e574212b5508b7

commit 06f794bfe6b55957e869320c60e574212b5508b7
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Oct 15 15:32:38 2015 -0400

    clear x11 client pixmap when returning from iconic
    
    ensure pixmap remains usable during the entire hide process
---
 src/bin/e_comp_x.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index 57f3b75..a3c040d 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -976,10 +976,7 @@ _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));
-        e_pixmap_clear(ec->pixmap);
-     }
+     ecore_x_window_hide(_e_comp_x_client_window_get(ec));
 
    if (e_comp_config_get()->send_flush)
      ecore_x_e_comp_flush_send(e_client_util_win_get(ec));
@@ -1001,7 +998,10 @@ _e_comp_x_evas_show_cb(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj EINA_UN
    if (!_e_comp_x_client_data_get(ec)->need_reparent)
      ecore_x_window_show(win);
    if (ec->unredirected_single || ec->iconic)
-     ecore_x_window_show(_e_comp_x_client_window_get(ec));
+     {
+        e_pixmap_clear(ec->pixmap);
+        ecore_x_window_show(_e_comp_x_client_window_get(ec));
+     }
    if (!ec->override)
      e_hints_window_visible_set(ec);
 

-- 


Reply via email to