display: Update display state vconf key whenever display state is changed 06/44806/1 accepted/tizen/mobile/20150729.011149 accepted/tizen/tv/20150729.011317 accepted/tizen/wearable/20150729.011407 submit/tizen/20150728.111745
authorJiyoung Yun <jy910.yun@samsung.com>
Tue, 28 Jul 2015 05:22:26 +0000 (14:22 +0900)
committerJiyoung Yun <jy910.yun@samsung.com>
Tue, 28 Jul 2015 05:22:26 +0000 (14:22 +0900)
The display api in capi-system-device depends on display state vconf key.
So it should be updated whenever display state is changed
to notify others changing events.

Change-Id: I52084fbd51da92af2313c2aa130c98bff777a004
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
src/display/core.c

index a6ce682..cce5d64 100644 (file)
@@ -1604,6 +1604,7 @@ static int default_action(int timeout)
        if (pm_cur_state != pm_old_state && pm_cur_state != S_SLEEP) {
                if (power_ops.get_power_lock_support())
                        power_ops.power_lock();
+               set_setting_pmstate(pm_cur_state);
                device_notify(DEVICE_NOTIFIER_LCD, &pm_cur_state);
        }