From: Enlightenment S. <no-...@en...> - 2011-03-09 13:28:39
|
Log: e17: fetch netwm state ealier so netwm.state.modal is set before used in icccm.fetch.client_leader case Author: jeffdameth Date: 2011-03-09 05:28:31 -0800 (Wed, 09 Mar 2011) New Revision: 57623 Trac: http://trac.enlightenment.org/e/changeset/57623 Modified: trunk/e/src/bin/e_border.c Modified: trunk/e/src/bin/e_border.c =================================================================== --- trunk/e/src/bin/e_border.c 2011-03-09 13:15:33 UTC (rev 57622) +++ trunk/e/src/bin/e_border.c 2011-03-09 13:28:31 UTC (rev 57623) @@ -5956,6 +5956,12 @@ 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 @@ { 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 @@ 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); |