e17: fetch netwm state ealier so netwm.state.modal is set before used in icccm.fetch...
authorHannes Janetzek <hannes.janetzek@gmail.com>
Wed, 9 Mar 2011 13:28:31 +0000 (13:28 +0000)
committerHannes Janetzek <hannes.janetzek@gmail.com>
Wed, 9 Mar 2011 13:28:31 +0000 (13:28 +0000)
SVN revision: 57623

src/bin/e_border.c

index 1220e6a..50f91f7 100644 (file)
@@ -5956,6 +5956,12 @@ _e_border_eval0(E_Border *bd)
    bd->changes.border = 0;
 
    /* fetch any info queued to be fetched */
+   if (bd->client.netwm.fetch.state)
+     {
+        e_hints_window_state_get(bd);
+        bd->client.netwm.fetch.state = 0;
+        rem_change = 1;
+     }
    if (bd->client.icccm.fetch.client_leader)
      {
         /* TODO: What do to if the client leader isn't mapped yet? */
@@ -5980,7 +5986,7 @@ _e_border_eval0(E_Border *bd)
            {
               bd_leader->group = eina_list_append(bd_leader->group, bd);
               bd->leader = bd_leader;
-     /* Only set the window modal to the leader it there is no parent */
+             /* Only set the window modal to the leader it there is no parent */
               if ((e_config->modal_windows) && (bd->client.netwm.state.modal) &&
                   ((!bd->parent) || (bd->parent->modal != bd)))
                 {
@@ -6059,12 +6065,6 @@ _e_border_eval0(E_Border *bd)
         bd->client.icccm.fetch.state = 0;
         rem_change = 1;
      }
-   if (bd->client.netwm.fetch.state)
-     {
-        e_hints_window_state_get(bd);
-        bd->client.netwm.fetch.state = 0;
-        rem_change = 1;
-     }
    if (bd->client.e.fetch.state)
      {
         e_hints_window_e_state_get(bd);