+EXPORT_API void appcore_ui_base_window_on_aux_message(int type, void *event)
+{
+ Ecore_Wl2_Event_Aux_Message *ev = event;
+
+ if (ev->key && !strcmp(ev->key, "dpms_wm")) {
+ if (ev->val && !strcmp(ev->val, "on")) {
+ _DBG("Display state: on");
+ appcore_base_set_display_state(
+ APPCORE_BASE_DISPLAY_STATE_ON);
+ } else if (ev->val && !strcmp(ev->val, "off")) {
+ _DBG("Display state: off");
+ appcore_base_set_display_state(
+ APPCORE_BASE_DISPLAY_STATE_OFF);
+ } else {
+ _ERR("Unknown state: %s", ev->val);
+ }
+ }
+}
+