ecore_wl2_input: initializes code variable. 25/237325/1
authorHosang Kim <hosang12.kim@samsung.com>
Mon, 29 Jun 2020 06:01:15 +0000 (15:01 +0900)
committerkim hosang <hosang12.kim@samsung.com>
Mon, 29 Jun 2020 06:07:42 +0000 (06:07 +0000)
Change-Id: I99440ba38835c42829e8d50b736d0904c7d30adb

src/lib/ecore_wl2/ecore_wl2_input.c

index f769de4..437dc56 100644 (file)
@@ -1454,6 +1454,13 @@ _keyboard_cb_key(void *data, struct wl_keyboard *keyboard EINA_UNUSED, unsigned
    else
 //
       window = input->focus.keyboard; /* try to get the window which has keyboard focus */
+
+   input->display->serial = serial;
+   input->timestamp = timestamp;
+
+   /* xkb rules reflect X broken keycodes, so offset by 8 */
+   code = keycode + 8;
+
    // TIZEN_ONLY(20171107): support a tizen_keyrouter interface
    if (!window)
      {
@@ -1472,13 +1479,7 @@ _keyboard_cb_key(void *data, struct wl_keyboard *keyboard EINA_UNUSED, unsigned
           }
      }
    //
-
-   input->display->serial = serial;
-   input->timestamp = timestamp;
-
-   /* xkb rules reflect X broken keycodes, so offset by 8 */
-   code = keycode + 8;
-
+   //
 // TIZEN ONLY(20160223) : Add back/menu/home key conversion support
    if (_tizen_api_version == 0.0) _ecore_wl2_input_key_conversion_set(input);