aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2015-02-06 15:06:49 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-02-06 15:06:49 +0900
commit2bd02ea54dafcf337b5c44de07c06f1bca1e1cb6 (patch)
treeff7bd7758eca22ec9c681f24c826e13e1dee8df4 /legacy/elementary/src/lib/elm_win.c
parentfix win center trap for elm to pass in h and v params (diff)
downloadefl-2bd02ea54dafcf337b5c44de07c06f1bca1e1cb6.tar.gz
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
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index d71322393a..a111e9f09d 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -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)
{