summaryrefslogtreecommitdiff
path: root/src/lib/elput
Commit message (Collapse)AuthorAgeFilesLines
* call sd_seat_can_tty to determine if ttys should be used, instead of ↵nerdopolis2020-09-181-2/+6
| | | | | | | | | | | | | | | | | hard-coding seat0 Summary: All TTYs are on seat0, but not all seat0s have TTYs Reviewers: #efl, devilhorns Reviewed By: #efl, devilhorns Subscribers: bu5hm4n, stefan_schmidt, raster, cedric, #reviewers, #committers Tags: #efl Reviewed-by: Christopher Michael <devilhorns@comcast.net> Differential Revision: https://phab.enlightenment.org/D12143
* elput - support libelogind.so.0 as well as libelogind-shared.so.0Carsten Haitzler (Rasterman)2020-08-041-6/+35
| | | | | for gentoo... @fix
* Get rid of trailing whitespaces (10 / 14)Elyes HAOUAS2020-06-231-1/+1
| | | | | Remove trailing whitespaces Differential Revision: https://phab.enlightenment.org/D12009
* elput - fix #else path for minorCarsten Haitzler (Rasterman)2020-05-271-1/+1
|
* elput - it seems not everyone has major and minor macros definedCarsten Haitzler (Rasterman)2020-05-271-5/+18
| | | | | so handle those cases and provide some implementation for those, otherwise use the macros.
* refactor buildMarcel Hollerbach2020-05-271-6/+7
| | | | | | | | | | libraries are split into deps, external deps, and pub deps. Evas engines are refactored to use the predefined engine deps. this is preparation work for efl-one. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11806
* lib: add more c_args handling for places we missed beforeStefan Schmidt2020-05-261-0/+1
| | | | | | | | | These meson files did not have the c_args handling before. Make sure we use package_c_args here as well. Reviewed-by: Vincent Torri <vincent.torri@gmail.com> Reviewed-by: João Paulo Taylor Ienczak Zanette <joao.tiz@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D11860
* elput: Rmove empty pub_eo_file_target in meson.buildChristopher Michael2020-05-181-1/+0
|
* elput: Fix formattingChristopher Michael2020-05-181-11/+10
| | | | NB: No functional changes
* elgind - it's apparently libelogind-shared ...Carsten Haitzler (Rasterman)2020-05-181-1/+1
|
* systemd - make libsystemd use/supprot entirely runtime "dlopened"Carsten Haitzler (Rasterman)2020-05-184-23/+76
| | | | | | | | | | | so i've moved all systemd and elogind support to be runtime only with dlopen (eina_module) of libsystemd.so.0 (or libelogind.so.0 for elput) and finding of symbols manually at runtime (if the right code paths or env vars are set), thus remvoing the need to decide at compile time if efl needs systemd support or not as it no longer needs systemd headers/libs at compile time and just at runtime. this simplifies building a bit and makes efl more adaptive to the final target system at runtime.
* doxygen docs: Fix all invalid @param namesXavi Artigas2020-04-201-1/+0
| | | | There were quite a few of these...
* doxygen: fix missing titles in addgroupXavi Artigas2020-02-281-1/+1
|
* make mman.h privateVincent Torri2019-08-191-1/+0
| | | | | | | | | | | | | | | | | Summary: integrate mman.h to make Evil private to the EFL, as mman.h does not exist on Windows. After a discussion with raster, i include sys/mman.h only on non Windows platform. One issue, though, is that src/modules/emotion/generic/Emotion_Generic_Plugin.h has inlined functions using mmap() Test Plan: compilation on Windows Reviewers: cedric, raster, zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9542
* elput: Remove useless call to eldbus_message_unrefChristopher Michael2019-04-231-1/+0
| | | | | | | | If we are returning here due to a failure to create the eldbus message, then there is no point in trying to free it as it is already null. @fix
* docs: Fix common misspellings in H filesXavi Artigas2019-04-021-2/+2
| | | | | Fixed all appearances of words from this list in H files: https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
* elput: Update doxygen parametersChristopher Michael2019-01-311-2/+2
| | | | NB: No functional changes
* elput: Add API to allow settings tap-to-click on pointer deviceMichaël Bouchaud (yoz)2019-01-312-0/+52
| | | | | | | | | | | | | | | | | Summary: Add a way to configure pointer device with tap-to-click features. @feature Reviewers: ManMower, devilhorns Reviewed By: devilhorns Subscribers: devilhorns, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7843
* elput: Verify pointer device is accel capable before setting speedChristopher Michael2019-01-021-0/+3
| | | | | As we cannot set mouse accel speed unless an input device is capable, we add a small test here to check that it supports acceleration.
* elput: Add elogind as meson optionChris Michael2018-11-291-0/+3
|
* elput: Fix ifdef check to support elogind alsoChris Michael2018-11-291-1/+1
|
* elput: Fix ifdef check to work for elogind alsoChris Michael2018-11-291-1/+1
|
* elput: Add include flie for elogind supportChris Michael2018-11-291-0/+4
|
* here comes mesonMarcel Hollerbach2018-10-021-0/+43
| | | | | | | | | | | | | | | | | | | | | | | a new shiny buildtool that currently completes in the total of ~ 4 min.. 1 min. conf time 2:30 min. build time Where autotools takes: 1:50 min. conf time 3:40 min. build time. meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read. Further informations can be gathered from the README.meson Right now, bindings & windows support are missing. It is highly recommented to use meson 0.48 due to optimizations in meson that reduced the time the meson call would need. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Differential Revision: https://phab.enlightenment.org/D7012 Depends on D7011
* elput: Remove unused and useless event typeChris Michael2018-07-171-4/+1
| | | | | | | | | f220f08 introduced this event, however this event never gets raised or used. I believe this was an accidental inclusion. '#betabreak' Reviewed-By: Derek Foreman <derek.foreman.samsung@gmail.com>
* ecore_wl2&elput: correctly fill the key structureMarcel Hollerbach2018-07-101-10/+0
| | | | | | | | | | | | | | Summary: the key structure has two fields key and keyname, those should be identical to the keystructures from x. the method xkb_keysym_to_utf8 however returns different values for keys like "minus" thus only relying on xkb_keysym_name files this issue. Reviewers: eagleeye, devilhorns Reviewed By: eagleeye Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6520
* elput: include Eina.h in public headerMike Blumenkrantz2018-04-051-2/+3
| | | | Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
* elput - don't segv on shutdown when libinput dispatch happens to free libCarsten Haitzler (Rasterman)2018-02-261-2/+2
|
* elput: Fix null pointer dereferenceChris Michael2018-01-231-1/+1
| | | | | | | | | Coverity reports this as a null pointer dereference, so check for 'seat' existence before comparing with strcmp Fixes CID1385369 Signed-off-by: Chris Michael <cp.michael@samsung.com>
* ecore_drm2: Only use a virtual terminal on seat0Chris Michael2018-01-221-8/+11
| | | | | | | | | | | | | | Summary: Only seat0 supports virtual terminals. Test Plan: Make sure enlightenment does not error out on non-seat0 due to a virtual terminal error. Enlightenment will not start yet on seat1 with this alone Reviewers: ManMower, devilhorns Reviewed By: devilhorns Subscribers: ManMower, devilhorns, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5710
* all: Simplify definition of EAPIVincent Torri2018-01-181-18/+6
| | | | | This will help in the transition from Autotools to Meson. This has been tested on Windows for which EFL_XXX_BUILD were first introduced.
* elput - fix crash on shutdown where input.lib was NULLCarsten Haitzler (Rasterman)2018-01-171-1/+1
| | | | | this was null checked everywhere except in 1 place. fix. now more crash on shutdown now
* efl: Reset ecore event types on initJean-Philippe Andre2017-12-191-12/+9
| | | | | | | | | | | | | | This fixes cycles of init/shutdown/init where ecore event types would become invalid, since they are now stored in a dynamic array rather than a statically stored array. The risk here is that if a module of EFL tends to init/shutdown in a "normal" scenario then the event type array will grow in a leaking manner. This could be fixed by resetting those event ID's only when the loop actually exits (EFL_EVENT_DEL on the main loop). I'm not using EFL_EVENT_DEL in this patch as this would add too many event callbacks to the main loop object, which may result in slightly slower event calls to it, affecting the overall performance.
* elput: Remove unreachable codeChris Michael2017-11-201-4/+0
| | | | | | | | | | | As we are returning the evdev above, this block is unreachable so remove it. Fixes Coverity CID1382857 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* libinput check - move up to requiring 1.6 as a minimum for libinputCarsten Haitzler (Rasterman)2017-11-121-7/+0
|
* elput - ref device that is in the event queueCarsten Haitzler (Rasterman)2017-11-091-1/+11
|
* elput - re-enable switches (power buttons, lid etc.)Carsten Haitzler (Rasterman)2017-11-083-13/+54
| | | | | | | | | | this is needed for devices that no longer produce aspi events for these. otherwise good luck getting any event on lid open/close or on pressing the power button. this also stops hiding switch events from libinput and now you can get switch events to find lid or tablet mode switching changes. @fix
* elput: Fix issue of pointer rotation not being set on startupChris Michael2017-10-032-2/+37
| | | | | | | | | | | | | | | | | | elput_input_pointer_rotation_set may be getting called before input devices are actually added, so we need to be able to set pointer rotation when a device actually gets added. To fix this, we will store the requested input rotation value, and apply it at the time of input device creation. NB: The current case is that the wl_drm module will apply existing output rotation before Input has completely initialized, thus any calls to set the pointer rotation there will not succeed as input devices have not been created yet. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* elput: Add API to set pointer acceleration speedChris Michael2017-08-242-0/+47
| | | | | | | | | | | Small patch to add an API which can be called to set pointer acceleration speed under Wayland. ref T4736 @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
* wayland: fix num/caps lock handling in eventsMike Blumenkrantz2017-08-182-0/+10
| | | | | | | | | locks are not the same as modifiers, and the corresponding event flag must be set based on whichever value(s) are set instead of yolo mixing and matching @fix ref T5737
* elput: Fix @brief's in docsBryce Harrington2017-08-171-23/+32
| | | | | | | | | | | | | | | | Summary: It is not necessary to specify @brief since the first line will automatically be used, but if it is used it should be only for the brief description, not the detailed description. Also reformat other docs in this file to follow convention for the brief docs. Reviewers: cedric Subscribers: jpeg Differential Revision: https://phab.enlightenment.org/D5101
* elput: Fix synthetic relative motion events based on abs eventsDerek Foreman2017-07-282-3/+29
| | | | | | | | | libinput won't actually give us this info, and logs an error instead. We can't synthesize based on pointer position due to pointer warping. So we must track abs reports and use previous abs reports to synthesize rel events.
* elput: fix seat cleanupMike Blumenkrantz2017-07-281-1/+8
| | | | | | ensure seat deletion does not conflict with elput shutdown @fix
* elput: unref devices in post event cbMike Blumenkrantz2017-07-281-1/+1
| | | | @fix
* elput: Close fds when asked toDerek Foreman2017-07-251-0/+1
| | | | | | | | | | Our close callback tells logind we're done with a device, but it should also actually close the fd it's passed, or we end up leaking piles of fds on VC switch. see weston commit 8f5acc2f3a29c3831af4ddd6bed57f703c98dc77 and subsequent regression in commit 72dea06d7952e3ce8dd8057f7106186da4fa2678 and pending fix in https://patchwork.freedesktop.org/patch/168992/
* elput: Fix multiple open/close of drm devicesDerek Foreman2017-07-242-0/+20
| | | | | | | | | | | | | | When I added the code to probe drm devices to ensure they're modeset capable (ref 414d406b3b442216543cdaef112787696ae09898) I didn't realize elput didn't allow us to open and close more than one drm device at startup without blowing up libinput. This is a somewhat dirty hack to rough that in. The problem is that open/close the device during startup will result in an async "gone" callback from logind, which then kicks off an input shutdown. We need to try harder to only do that shutdown when it makes sense.
* elput: Fix resource leakChris Michael2017-07-121-0/+3
| | | | | | | | | | | Coverity CID1377539 says that we leak the eldbus reply here when we error out, so be sure to cleanup 'reply' Fixes CID1377539 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* elput: Update modifers for caps lockChris Michael2017-07-101-0/+2
| | | | | | | | | | Small patch to fix issue of not setting caps_lock modifier. As we lookup this modifier index when creating keyboard info, we should be testing for it and setting seat->modifiers accordingly. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* elput: Fix support for setting keyboard led(s)Chris Michael2017-07-102-1/+60
| | | | | | | | | | | | | Small patch to update keyboard led(s) when caps, numlock, etc are pressed. This patch adds some fields to internal (non-API exposed) structures inside our private header (of a BETA-API library) and thus should still be ok during freeze. Fixes T5655 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
* elput: Minor formatting fixChris Michael2017-07-101-1/+3
| | | | | | NB: No functional changes Signed-off-by: Chris Michael <cp.michael@samsung.com>