[clutter] evdev: Drop redundant stage set check
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] evdev: Drop redundant stage set check
- Date: Thu, 3 Dec 2015 07:37:44 +0000 (UTC)
commit 9c26a98a6f16e6a339bd10cf0133930fed1e5d02
Author: Jonas Ådahl <jadahl gmail com>
Date: Wed Dec 2 16:19:09 2015 +0800
evdev: Drop redundant stage set check
Every path creating a input device in the evdev backend sets a stage,
so the check is unnecessary.
https://bugzilla.gnome.org/show_bug.cgi?id=752752
clutter/evdev/clutter-device-manager-evdev.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/clutter/evdev/clutter-device-manager-evdev.c b/clutter/evdev/clutter-device-manager-evdev.c
index 37bb507..0dd8e45 100644
--- a/clutter/evdev/clutter-device-manager-evdev.c
+++ b/clutter/evdev/clutter-device-manager-evdev.c
@@ -403,12 +403,7 @@ notify_absolute_motion (ClutterInputDevice *input_device,
ClutterStage *stage;
ClutterEvent *event = NULL;
- /* We can drop the event on the floor if no stage has been
- * associated with the device yet. */
stage = _clutter_input_device_get_stage (input_device);
- if (stage == NULL)
- return;
-
device_evdev = CLUTTER_INPUT_DEVICE_EVDEV (input_device);
manager_evdev = CLUTTER_DEVICE_MANAGER_EVDEV (input_device->device_manager);
seat = _clutter_input_device_evdev_get_seat (device_evdev);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]