efl_ui_win: apply a property of skip_focus in case invoking elm_win_quickpanel_set
authorJuyeon Lee <juyeonne.lee@samsung.com>
Tue, 14 Nov 2017 09:37:55 +0000 (18:37 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Tue, 19 Dec 2017 07:48:25 +0000 (16:48 +0900)
@tizen_feature

Change-Id: I8aadcbee1991da13f601309feebd8465dfc97c6f

src/lib/elementary/efl_ui_win.c

index eb170df..11360b5 100644 (file)
@@ -412,6 +412,9 @@ static void _elm_win_frame_obj_update(Efl_Ui_Win_Data *sd);
 #ifdef HAVE_ELEMENTARY_X
 static void _elm_win_xwin_update(Efl_Ui_Win_Data *sd);
 #endif
+// TIZEN_ONLY(20160404)  skip_focus in case invoking elm_win_quickpanel_set
+static void _elm_win_focus_skip_set(Efl_Ui_Win_Data *sd, Eina_Bool skip);
+//
 
 EAPI double _elm_startup_time = 0;
 
@@ -1701,6 +1704,16 @@ _elm_win_state_change(Ecore_Evas *ee)
    //
 }
 
+// TIZEN_ONLY(20160404)  skip_focus in case invoking elm_win_quickpanel_set
+static void
+_elm_win_focus_skip_set(Efl_Ui_Win_Data *sd, Eina_Bool skip)
+{
+   if (!sd) return;
+   sd->skip_focus = skip;
+   TRAP(sd, focus_skip_set, skip);
+}
+//
+
 EOLIAN static Eina_Bool
 _efl_ui_win_elm_widget_on_focus_update(Eo *obj, Efl_Ui_Win_Data *sd, Elm_Object_Item *item EINA_UNUSED)
 {
@@ -6692,8 +6705,9 @@ _efl_ui_win_efl_screen_screen_rotation_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data
 EOLIAN static void
 _efl_ui_win_prop_focus_skip_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, Eina_Bool skip)
 {
-   sd->skip_focus = skip;
-   TRAP(sd, focus_skip_set, skip);
+   // TIZEN_ONLY(20160404)  skip_focus in case invoking elm_win_quickpanel_set
+   _elm_win_focus_skip_set(sd, skip);
+   //
 }
 
 EOLIAN static Eina_Bool
@@ -7664,6 +7678,11 @@ elm_win_quickpanel_set(Evas_Object *obj, Eina_Bool quickpanel)
    (void)sd;
    (void)quickpanel;
 #endif
+#ifdef HAVE_ELEMENTARY_WL2
+   // TIZEN_ONLY(20160404)  skip_focus in case invoking elm_win_quickpanel_set
+   _elm_win_focus_skip_set(sd, EINA_TRUE);
+   //
+#endif
 }
 
 EAPI Eina_Bool