summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm (follow)
AgeCommit message (Collapse)Author
2015-02-23ecore-drm: Add output id to output eventChris Michael
Summary: When we raise an event for an output, also include the output id in the event structure. This will allow us to better identify which output the event occured on. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-19ecore-drm Add hooks for updating wl_output when outputs are hotpluggedDerek Foreman
Summary: This provides callbacks to any bound wl_output listeners when a display is hotplugged. NOTE: Currently we don't receive hotplug events ANOTHER NOTE: We don't yet handle display removal Reviewers: devilhorns, zmike Reviewed By: devilhorns, zmike Subscribers: cedric Maniphest Tasks: T2131 Differential Revision: https://phab.enlightenment.org/D2006
2015-02-19ecore-drm Add API for querying output parametersDerek Foreman
Reviewers: zmike, devilhorns Reviewed By: devilhorns Subscribers: cedric Maniphest Tasks: T2131 Differential Revision: https://phab.enlightenment.org/D2005
2015-02-19ecore-drm Fix typoDerek Foreman
Reviewers: devilhorns, zmike Reviewed By: devilhorns, zmike Subscribers: cedric Maniphest Tasks: T2131 Differential Revision: https://phab.enlightenment.org/D2004
2015-02-17ecore-drm: Fix issue with ecore_drm_evdev->path being incorrectChris Michael
Summary: When we try to ReleaseDevice of our evdev structure, the 'path' which was getting passed to our logind code was incorrect. This was due to libinput not providing a function to get the full device path. We fix this by making some eeze udev calls to find this device and get the full device path. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-17ecore-drm: Fix issue of ecore_drm not calling ReleaseDevice when anChris Michael
input is destroyed Summary: This fixes an issue where if you VT switch away from a running Enlightenment and VT switch back, then input would no longer be working. This was because we never called ReleaseDevice (dbus call) when we destroyed a device, so any calls to recreate the device would fail in libinput due to control already being taken. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-17ecore-drm: Don't recreate ecore_event handlers if we already have themChris Michael
Summary: If we already have the ecore_event_handlers for logind, then do not recreate them on logind_connect. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-17ecore-drm: Fix issue of checking improper eldbus message for errorsChris Michael
Summary: When we send_and_block, we should be checking the 'reply' for errors, not the original message which was sent. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-12ecore/drm: Fix libinput >= 0.8 checkStefan Schmidt
We need #if here as LIBINPUT_HIGHER_08 will be either 0 or 1 @fix
2015-02-12ecore-drm: Fix bad German formatting ;)Chris Michael
Summary: No functional changes, just formatting Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-12ecore/drm: Add support for changed libinput API since 0.8Stefan Schmidt
We check for libinput 06 or higher. In version 0.8 they got an API break (hopefully the last one before 1.0) which we did not support so far. I have seen libinput 0.9 used on gentoo and newer ubuntu systems so we should definitely support them. Adding a LIBINPUT_HIGHER_08 define to check for this. So far we have only one location where we need it. Once there is a libinput 1.0 we should remove the support for older versions. http://lists.freedesktop.org/archives/wayland-devel/2015-January/019383.html
2015-02-11ecore-drm: Print error when taking control of a device failsChris Michael
Summary: If we send a dbus blocking message, and it returns an error then we should be printing out this error message @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-11ecore-drm: Disable/Enable inputs if we release/aquire VT through logindChris Michael
Summary: Due to libinput processing events directly from evdev, we need to disable/enable input events when we release/acquire the vt. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-11ecore-drm: Disable/Enable inputs if we release/acquire the VTChris Michael
Summary: Due to libinput process events directly from evdev, when we VT switch we should disable/enable inputs accordingly. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-10ecore-drm should not use sscanf when getting logind vtMike Blumenkrantz
this should be more robust for when something like "/dev/tty4" is passed @fix
2015-02-05ecore-drm: Remove unused variableChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-05ecore-drm: Fix issue with ecore_drm_output_crtc_Find sending back anChris Michael
invalid id. Fix T2086 Summary: In order to avoid getting returned an invalid id, we should not be checking the currently active encoder and crtc combination because outputs may have changed, encoders/crtc combinations could have changed, etc, etc. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-03ecore-drm should probably send the expected (reversed) scroll z valueMike Blumenkrantz
2015-02-02ecore-drm: Trap for failure to dup stdinChris Michael
Summary: If we fail to duplicate stdin, we should write out an error and exit appropriately. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-02-02ecore-drm: Fix formattingChris Michael
NB: No functional changes, just formatting Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26ecore-drm: Remove session parameter for session take/release functionsChris Michael
The functions to take or release a session no longer accept session name as a parameter, so fix calls to those functions @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26ecore-drm: Remove unused function parameterChris Michael
The session take/release functions no longer need the session name paramater, so remove that. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26ecore-drm: Remove session parameter for internal functionChris Michael
The session take/release functions no longer require the name of the session, so remove the function parameter @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26ecore-drm: Remove logind header fileChris Michael
Summary: These functions have been moved to the private header file now, and thus this file is no longer needed. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26ecore-drm: Move session and vt fields to store inside theChris Michael
Ecore_Drm_Device Summary: This moves storing the session name and VT fields inside the device structure. This also adds a field so we can store the keyboard mode of the tty, and restore it on close. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26ecore-drm: Cleanup private header fileChris Michael
Summary: This moves the logind function prototypes to the private header and thus removes the need for a separate logind header file. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26ecore-drm: Cleanup launcher codeChris Michael
Summary: This moves the VT switch handling code to the tty file, and sets the proper flags on the VT when opened. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26ecore-drm: Fix various issues with logind codeChris Michael
Summary: This fixes a few issues with the logind code such as: Getting the VT from systemd (if available), Properly setup the VT using proper 'open' flags, adding a 'restore' function to reset the tty properly, and handle take/release session. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26ecore-drm: Cleanup tty code and handle vt signal trappingChris Michael
Summary: This cleans up the tty code a bit, and makes it the responsibility of the tty code to handle VT switching signals @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26ecore-drm: Default device->session to NULLChris Michael
Summary: This sets the default session to NULL when a device is created. Also a formatting fix @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-26ecore-drm: Store session name inside dev structure and don'tChris Michael
take/release session control inside dbus functions Summary: These changes move the storage of session name to inside the Ecore_Drm_Device structure and remove calls to take/release session control to outside of the dbus code @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-19Revert "ecore-drm: Don't init tty unless we are Not using systemd"Chris Michael
This reverts commit 28e4901d041e087f505c19bc9733ef22d31addf0. This broke vt switching in drm so revert (for now) until we get the systemd vt and setup handlers
2015-01-19ecore-drm: Don't init tty unless we are Not using systemdChris Michael
Summary: It turns out we don't need to handle open & setup of the tty unless we are Not using systemd. This fixes an issue during enlightenment restart where we are unable to reopen the tty. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-19ecore-drm: Reset output cursor and crtc mode on shutdownChris Michael
Summary: When we shutdown outputs, we should reset the hardware cursor state and the saved crtc mode in order to reset things back to normal. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-19ecore-drm: Restore tty keyboard mode on restore of ttyChris Michael
Summary: When we are shutting down a tty, restore the old keyboard mode that we retain from tty_setup. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-13ecore-drm: Re-enable setting K_OFF keyboard modeChris Michael
Summary: Now that things are shaping up, we can re-enable the K_OFF tty mode which will help with buffering input, etc. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-13ecore-drm: Limit mouse movement to within the output sizeChris Michael
Summary: This patch adds support to limit the mouse from moving outside the output dimensions, and fixes coordinate transformation calls to use the Output from the Input device @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-13ecore-drm: Remove call to unused functionChris Michael
Summary: This just removes the call to the no longer used/needed function to update the input device's view of the output. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-13ecore-drm: Remove unused functionChris Michael
Summary: Since we now have a reference to the actual output inside the input device, we no longer need this function to update the Input device's view of the output size. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-13ecore-drm: Add actual Outut to the Input device structureChris Michael
Summary: This adds an actual Ecore_Drm_Output pointer to the Ecore_Drm_Evdev structure so we can check the output size to limit mouse corrdinates. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-06ecore-drm: Fix issue with TakeControl and ReleaseControl functionsChris Michael
Summary: The dbus calls to TakeControl and ReleaseControl of a session are actual Methods that need to be setup and called in order to operate properly. As such, this commit fixes that issue by using the proper eldbus method calls, and fixes an issue where shutting down Enlightenment would lead to "cannot release control" error messages. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-06ecore-drm: Fix incorrect launcher shutdown procedureChris Michael
Summary: We need to clean tty handlers and close the tty Before we can call logind_disconnect as that function ends up shuttting down our dbus connection. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-01-05ecore-drm: remove duplicated code from logind and tty.Seunghun Lee
Summary: integrates the code used in common. Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1796
2014-12-16ecore-drm: add error handling, when fail to setup tty.Seunghun Lee
Summary: need to restore vt to text mode, when failed to setup. @fix Reviewers: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1777
2014-12-10ecore-drm: Free devices before we release the libinput referenceChris Michael
Summary: When destroying evdev devices, we make calls to libinput_device_unref ... but we cannot Make that call if the libinput context has been destroyed already (as happens when we free input). So to fix, don't release the libinput context until all devices have been released. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-10ecore-drm: Don't declare sprite variable unless we need it, also fixChris Michael
some formatting. Summary: This commit saves from declaring variable for Ecore_Drm_Sprite unless we are going inactive and need to iterate sprites. (and also fixes some formatting) @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-10ecore-drm: Fix formattingChris Michael
Summary: No functional changes, just formatting fixes Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-10ecore-drm: Fix formattingChris Michael
Summary: No functional changes, just formatting fixes Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-10ecore-drm: Add event to notify session activation state.Seunghun Lee
Summary: this event is to notify session activation state to compositor. thus compositor can change composite state by this event. Reviewers: devilhorns Subscribers: torori, cedric Differential Revision: https://phab.enlightenment.org/D1767
2014-12-10ecore-drm: Finish implementing touch eventsChris Michael
Summary: This fixes the touch events to actually send button down/up when the proper touch event occurs @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>