e_input: check whether libinput handle is NULL 00/299000/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 14 Sep 2023 11:20:10 +0000 (20:20 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 18 Sep 2023 06:37:05 +0000 (06:37 +0000)
Change-Id: I8eb26c63a6985d75f12f5b85b81d77270b2b1144
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/bin/e_input_inputs.c

index 04e932e..b29d49a 100644 (file)
@@ -589,6 +589,9 @@ input_dispatch(GSource *source, GSourceFunc callback, gpointer user_data)
         return G_SOURCE_CONTINUE;
      }
 
+   if (!input->libinput)
+     return G_SOURCE_REMOVE;
+
    if (libinput_dispatch(input->libinput) != 0)
      ERR("Failed to dispatch libinput events: %m");