diff options
author | Stefan Schmidt <stefan@osg.samsung.com> | 2015-08-07 14:54:34 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@osg.samsung.com> | 2015-08-07 15:26:54 +0200 |
commit | 19c6617d78fdd6982ba34f7e95c89e6a698d16e3 (patch) | |
tree | d85bbd79c22aa0a22c5b6d877e44f6c8732f48a4 /src/lib/ecore_drm/ecore_drm_evdev.c | |
parent | 7ac5b36bc5c88f6fd2049996d932f9c27c51e8e1 (diff) |
ecore_drm_evdev: Avoid shadowing a local variable.
input is already used within this function so rename it in the block.
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_drm/ecore_drm_evdev.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_evdev.c b/src/lib/ecore_drm/ecore_drm_evdev.c index deca6a2c71..fe383024d4 100644 --- a/src/lib/ecore_drm/ecore_drm_evdev.c +++ b/src/lib/ecore_drm/ecore_drm_evdev.c | |||
@@ -80,19 +80,19 @@ _device_output_set(Ecore_Drm_Evdev *edev) | |||
80 | if (libinput_device_has_capability(edev->device, | 80 | if (libinput_device_has_capability(edev->device, |
81 | LIBINPUT_DEVICE_CAP_POINTER)) | 81 | LIBINPUT_DEVICE_CAP_POINTER)) |
82 | { | 82 | { |
83 | Ecore_Drm_Input *input; | 83 | Ecore_Drm_Input *pointer_input; |
84 | Ecore_Event_Mouse_Move *ev; | 84 | Ecore_Event_Mouse_Move *ev; |
85 | 85 | ||
86 | edev->mouse.dx = edev->output->current_mode->width / 2; | 86 | edev->mouse.dx = edev->output->current_mode->width / 2; |
87 | edev->mouse.dy = edev->output->current_mode->height / 2; | 87 | edev->mouse.dy = edev->output->current_mode->height / 2; |
88 | 88 | ||
89 | /* send a fake motion event to let other know the initial pos of mouse */ | 89 | /* send a fake motion event to let other know the initial pos of mouse */ |
90 | if (!(input = edev->seat->input)) return; | 90 | if (!(pointer_input = edev->seat->input)) return; |
91 | if (!(ev = calloc(1, sizeof(Ecore_Event_Mouse_Move)))) return; | 91 | if (!(ev = calloc(1, sizeof(Ecore_Event_Mouse_Move)))) return; |
92 | 92 | ||
93 | ev->window = (Ecore_Window)input->dev->window; | 93 | ev->window = (Ecore_Window)pointer_input->dev->window; |
94 | ev->event_window = (Ecore_Window)input->dev->window; | 94 | ev->event_window = (Ecore_Window)pointer_input->dev->window; |
95 | ev->root_window = (Ecore_Window)input->dev->window; | 95 | ev->root_window = (Ecore_Window)pointer_input->dev->window; |
96 | 96 | ||
97 | _device_modifiers_update(edev); | 97 | _device_modifiers_update(edev); |
98 | ev->modifiers = edev->xkb.modifiers; | 98 | ev->modifiers = edev->xkb.modifiers; |