discomfitor pushed a commit to branch master.

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

commit e8e2002804ae542c88af9483ace0d652d8665a92
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Wed Jan 15 10:36:45 2014 -0500

    always set icccm wm state when calling related hints function
    
    T773
---
 src/bin/e_hints.c | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/src/bin/e_hints.c b/src/bin/e_hints.c
index 3420ebf..d32c7f0 100644
--- a/src/bin/e_hints.c
+++ b/src/bin/e_hints.c
@@ -1210,10 +1210,8 @@ e_hints_window_visible_set(E_Client *ec)
 #else
    if (!e_pixmap_is_x(ec->pixmap)) return;
    if (ec->icccm.state != ECORE_X_WINDOW_STATE_HINT_NORMAL)
-     {
-        ecore_x_icccm_state_set(e_client_util_win_get(ec), 
ECORE_X_WINDOW_STATE_HINT_NORMAL);
-        ec->icccm.state = ECORE_X_WINDOW_STATE_HINT_NORMAL;
-     }
+     ec->icccm.state = ECORE_X_WINDOW_STATE_HINT_NORMAL;
+   ecore_x_icccm_state_set(e_client_util_win_get(ec), 
ECORE_X_WINDOW_STATE_HINT_NORMAL);
    if (ec->netwm.state.hidden)
      {
         ec->netwm.update.state = 1;
@@ -1231,10 +1229,8 @@ e_hints_window_iconic_set(E_Client *ec)
 #else
    if (!e_pixmap_is_x(ec->pixmap)) return;
    if (ec->icccm.state != ECORE_X_WINDOW_STATE_HINT_ICONIC)
-     {
-        ecore_x_icccm_state_set(e_client_util_win_get(ec), 
ECORE_X_WINDOW_STATE_HINT_ICONIC);
-        ec->icccm.state = ECORE_X_WINDOW_STATE_HINT_ICONIC;
-     }
+     ec->icccm.state = ECORE_X_WINDOW_STATE_HINT_ICONIC;
+     ecore_x_icccm_state_set(e_client_util_win_get(ec), 
ECORE_X_WINDOW_STATE_HINT_ICONIC);
    if (!ec->netwm.state.hidden)
      {
         ec->netwm.update.state = 1;
@@ -1252,10 +1248,8 @@ e_hints_window_hidden_set(E_Client *ec)
 #else
    if (!e_pixmap_is_x(ec->pixmap)) return;
    if (ec->icccm.state != ECORE_X_WINDOW_STATE_HINT_WITHDRAWN)
-     {
-        ecore_x_icccm_state_set(e_client_util_win_get(ec), 
ECORE_X_WINDOW_STATE_HINT_WITHDRAWN);
-        ec->icccm.state = ECORE_X_WINDOW_STATE_HINT_WITHDRAWN;
-     }
+     ec->icccm.state = ECORE_X_WINDOW_STATE_HINT_WITHDRAWN;
+   ecore_x_icccm_state_set(e_client_util_win_get(ec), 
ECORE_X_WINDOW_STATE_HINT_WITHDRAWN);
    if (ec->netwm.state.hidden)
      {
         ec->netwm.update.state = 1;

-- 


Reply via email to