fix for applying wayland (removing X)
[apps/home/settings.git] / setting-security / src / setting-security.c
index 6951f74..459c56b 100755 (executable)
@@ -23,8 +23,6 @@
 #include <setting-cfg.h>
 
 #include <efl_assist.h>
-#include <Ecore_X.h>
-#include <utilX.h>
 #include <app_manager.h>
 #if SUPPORT_ENCRYPTION
 #include <ode.h>
@@ -291,6 +289,7 @@ int pwd_handler_sec_pw_pin1_blocked(SettingSecurityUG *data, void *arg)
        ecore_x_netwm_window_type_set(xwin, ECORE_X_WINDOW_TYPE_NOTIFICATION);
        utilx_set_system_notification_level(disp, xwin, UTILX_NOTIFICATION_LEVEL_LOW);
 
+#if 0
        ret = utilx_grab_key(disp, xwin, KEY_BACK, EXCLUSIVE_GRAB);
        if (ret)
                SETTING_TRACE("utilx_grab_key() failed.");
@@ -303,7 +302,7 @@ int pwd_handler_sec_pw_pin1_blocked(SettingSecurityUG *data, void *arg)
        ret = utilx_grab_key(disp, xwin, KEY_VOLUMEDOWN, TOP_POSITION_GRAB);
        if (ret)
                SETTING_TRACE("utilx_grab_key() failed.");
-
+#endif
        unsigned int val[3];
        val[0] = 0;     /* always enable F */
        val[1] = 0;             /* quickpanel enable F */
@@ -538,6 +537,7 @@ static void setting_security_ug_on_pause(ui_gadget_h ug, app_control_h service,
                        Ecore_X_Window xwin = 0;
                        Ecore_X_Display *disp = NULL;
 
+#if 0
                        disp = ecore_x_display_get();
                        xwin = elm_win_xwindow_get(securityUG->win_get);
 
@@ -555,7 +555,6 @@ static void setting_security_ug_on_pause(ui_gadget_h ug, app_control_h service,
                        ret = utilx_ungrab_key(disp, xwin, KEY_VOLUMEDOWN);
                        if (ret)
                                SETTING_TRACE("utilx_ungrab_key() failed.");
-
                        unsigned int val[3];
                        val[0] = 1;     /* always enable */
                        val[1] = 1;             /* quickpanel enable */
@@ -564,6 +563,7 @@ static void setting_security_ug_on_pause(ui_gadget_h ug, app_control_h service,
                        Ecore_X_Atom ATOM_PANEL_SCROLLABLE_STATE = 0;
                        ATOM_PANEL_SCROLLABLE_STATE = ecore_x_atom_get("_E_MOVE_PANEL_SCROLLABLE_STATE");
                        ecore_x_window_prop_card32_set(xwin, ATOM_PANEL_SCROLLABLE_STATE, val, 3);
+#endif
                }
        }
 }
@@ -890,6 +890,7 @@ void setting_security_end_password_ug_cb(ui_gadget_h ug,
 
                int ret = 0;
 
+#if 0
                disp = ecore_x_display_get();
                xwin = elm_win_xwindow_get((Evas_Object *)ug_get_window());
 
@@ -905,6 +906,7 @@ void setting_security_end_password_ug_cb(ui_gadget_h ug,
                ret = utilx_ungrab_key(disp, xwin, KEY_VOLUMEDOWN);
                if (ret)
                        SETTING_TRACE("KEY_VOLUMEDOWN ungrab failed.");
+#endif
        }
 #if SUPPORT_ENCRYPTION
        if (setting_view_security_confirm_encryption.is_create == TRUE) {