fix for applying wayland (removing X)
[apps/home/settings.git] / setting-security / src / setting-security-enc-processing.c
index 4eda0ef..a24b76d 100644 (file)
@@ -24,8 +24,6 @@
 
 #include <setting-security-enc-processing.h>
 #include <setting-debug.h>
-#include <utilX.h>
-#include <Ecore_X.h>
 
 #include <ode.h>
 #include <dd-deviced.h>
@@ -59,6 +57,7 @@ static void __encrypting_key_grab(SettingSecurityUG *ad)
        if (ad == NULL)
                return;
 
+#if 0
        disp = ecore_x_display_get();
        xwin = elm_win_xwindow_get((Evas_Object *)ug_get_window());
 
@@ -74,7 +73,7 @@ static void __encrypting_key_grab(SettingSecurityUG *ad)
        ret = utilx_grab_key(disp, xwin, KEY_VOLUMEDOWN, TOP_POSITION_GRAB);
        if (ret)
                return;
-
+#endif
        ad->event_handler = ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, NULL, NULL);
        SETTING_TRACE_END;
 }
@@ -88,7 +87,7 @@ static void __encrypting_key_ungrab(SettingSecurityUG *ad)
 
        if (ad == NULL)
                return;
-
+#if 0
        disp = ecore_x_display_get();
        xwin = elm_win_xwindow_get((Evas_Object *)ug_get_window());
 
@@ -104,7 +103,7 @@ static void __encrypting_key_ungrab(SettingSecurityUG *ad)
        ret = utilx_ungrab_key(disp, xwin, KEY_VOLUMEDOWN);
        if (ret)
                return;
-
+#endif
        ecore_event_handler_del(ad->event_handler);
 }