only change a window's vdesk when getting window profile if the current desk does not have the required window profile

ticket #onefang
This commit is contained in:
Mike Blumenkrantz 2013-11-28 09:56:08 -05:00
parent cd7a0e6b64
commit da6f94a975
1 changed files with 6 additions and 3 deletions

View File

@ -6046,9 +6046,12 @@ _e_border_cb_client_message(void *data __UNUSED__, int ev_type __UNUSED__, void
bd->client.e.state.profile.wait_for_done = 0;
desk = e_container_desk_window_profile_get(con, profile);
if ((desk) && (bd->desk != desk))
e_border_desk_set(bd, desk);
if (bd->desk && e_util_strcmp(bd->desk->window_profile, profile))
{
desk = e_container_desk_window_profile_get(con, profile);
if (desk)
e_border_desk_set(bd, desk);
}
free(profile);
}
}