forked from enlightenment/efl
win: fix an issue that profile is erased and set to NULL.
Summary: When ecore_evas_window_profile_supported_get API return EINA_FALSE, elm_win widget should not get profile from ecore_evas_window_profile_get API. @fix Reviewers: woohyun, Hermet, seoz Reviewed By: seoz Differential Revision: https://phab.enlightenment.org/D1943
This commit is contained in:
parent
40fd99e2d9
commit
2bd02ea54d
|
@ -1194,8 +1194,11 @@ _elm_win_state_change(Ecore_Evas *ee)
|
|||
ch_maximized = EINA_TRUE;
|
||||
}
|
||||
|
||||
profile = ecore_evas_window_profile_get(sd->ee);
|
||||
ch_profile = _internal_elm_win_profile_set(sd, profile);
|
||||
if (ecore_evas_window_profile_supported_get(sd->ee))
|
||||
{
|
||||
profile = ecore_evas_window_profile_get(sd->ee);
|
||||
ch_profile = _internal_elm_win_profile_set(sd, profile);
|
||||
}
|
||||
|
||||
if (sd->wm_rot.use)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue