more stringshare improvements for window profile, apply window profile if no desk...
authorMike Blumenkrantz <zmike@samsung.com>
Thu, 6 Feb 2014 17:59:12 +0000 (12:59 -0500)
committerMike Blumenkrantz <zmike@samsung.com>
Thu, 6 Feb 2014 17:59:28 +0000 (12:59 -0500)
src/bin/e_comp_x.c

index 13a4149..d192e13 100644 (file)
@@ -1918,9 +1918,9 @@ _e_comp_x_message(void *data EINA_UNUSED, int type EINA_UNUSED, Ecore_X_Event_Cl
 
              ec->e.state.profile.wait_for_done = 0;
 
-             if (ec->desk && e_util_strcmp(ec->desk->window_profile, profile))
+             if ((!ec->desk) || e_util_strcmp(ec->desk->window_profile, ec->e.state.profile.name))
                {
-                  desk = e_comp_desk_window_profile_get(ec->comp, profile);
+                  desk = e_comp_desk_window_profile_get(ec->comp, ec->e.state.profile.name);
                   if (desk)
                     e_client_desk_set(ec, desk);
                }