discomfitor pushed a commit to branch enlightenment-0.21.

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

commit bd23b9c19b683bc10580d3fe30a61577e6f3588d
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Mar 17 15:08:02 2017 -0400

    do not attempt to set window hidden hints on non-internal x11 windows
    
    this causes a BadWindow error
---
 src/bin/e_comp_x.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_comp_x.c b/src/bin/e_comp_x.c
index d9c9532..fe644f8 100644
--- a/src/bin/e_comp_x.c
+++ b/src/bin/e_comp_x.c
@@ -1542,8 +1542,9 @@ _e_comp_x_hide(void *data EINA_UNUSED, int type 
EINA_UNUSED, Ecore_X_Event_Windo
      {
         hid = EINA_TRUE;
         evas_object_hide(ec->frame);
-        e_hints_window_hidden_set(ec);
-        if (!ec->internal)
+        if (ec->internal)
+          e_hints_window_hidden_set(ec);
+        else
           {
              if (ec->exe_inst && ec->exe_inst->exe)
                ec->exe_inst->phony = 0;

-- 


Reply via email to