e_comp_screen : update wl_seat capabilities for keyboard/touch device deletion 80/137880/1
authorSung-Jin Park <sj76.park@samsung.com>
Mon, 10 Jul 2017 07:24:43 +0000 (16:24 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 10 Jul 2017 07:28:18 +0000 (07:28 +0000)
Change-Id: Ie39a5bd83651401ab0882552e7358251c6885f13
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/bin/e_comp_screen.c

index bec4c21305b6b88b431e9a1ade23b96f64df16e6..3144302f90662e46c8d201cefbffa952e18522e5 100644 (file)
@@ -220,6 +220,22 @@ _e_comp_screen_cb_input_device_del(void *data, int type, void *event)
              e_pointer_hide(e_comp->pointer);
           }
      }
+   if (e->caps & EVDEV_SEAT_KEYBOARD)
+     {
+        comp->wl_comp_data->kbd.num_devices--;
+        if (comp->wl_comp_data->kbd.num_devices == 0)
+          {
+             e_comp_wl_input_keyboard_enabled_set(EINA_FALSE);
+          }
+     }
+   if (e->caps & EVDEV_SEAT_TOUCH)
+     {
+        comp->wl_comp_data->touch.num_devices--;
+        if (comp->wl_comp_data->touch.num_devices == 0)
+          {
+             e_comp_wl_input_touch_enabled_set(EINA_FALSE);
+          }
+     }
 
 end: