projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aabf450
)
ecore-drm: Center mouse pointer on an output when it gets created
author
Chris Michael
<cp.michael@samsung.com>
Wed, 4 Mar 2015 16:47:42 +0000
(11:47 -0500)
committer
Chris Michael
<cp.michael@samsung.com>
Wed, 4 Mar 2015 16:49:44 +0000
(11:49 -0500)
Summary: This sets the initial mouse pointer position to be at the
center of an output.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_drm/ecore_drm_evdev.c
patch
|
blob
|
history
diff --git
a/src/lib/ecore_drm/ecore_drm_evdev.c
b/src/lib/ecore_drm/ecore_drm_evdev.c
index 3f471019ca838f94659be0d360e7a15ae482cc8f..a8383fa5c6d54319b2ba25ca0a8b20e0cb543b0f 100644
(file)
--- a/
src/lib/ecore_drm/ecore_drm_evdev.c
+++ b/
src/lib/ecore_drm/ecore_drm_evdev.c
@@
-78,6
+78,13
@@
_device_output_set(Ecore_Drm_Evdev *edev)
if (!(output = eina_list_nth(input->dev->outputs, 0))) return;
edev->output = output;
}
+
+ if (libinput_device_has_capability(edev->device,
+ LIBINPUT_DEVICE_CAP_POINTER))
+ {
+ edev->mouse.dx = edev->output->current_mode->width / 2;
+ edev->mouse.dy = edev->output->current_mode->height / 2;
+ }
}
static void