summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_logind.c
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-06-21 12:46:29 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-06-21 12:46:29 -0400
commitb2a4f45790bd6d3beba494d55e269cc0650f0848 (patch)
tree204c45b708cd9d947ad18266ab00e42ca5d83645 /src/lib/elput/elput_logind.c
parentc39e8e75555573c1c1083794bb04923a6229ae65 (diff)
elput: Support suspending and resuming inputs on vt switch
This patch fixes an issue where input would stop working when you vt-switch away and back again in a running Enlightenment Wayland session. Basically, when we vt-switch away, we need to tell libinput to suspend input event processing, and when we return to re-enable it. Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/elput/elput_logind.c')
-rw-r--r--src/lib/elput/elput_logind.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/elput/elput_logind.c b/src/lib/elput/elput_logind.c
index fedb2b09e6..206f6e8337 100644
--- a/src/lib/elput/elput_logind.c
+++ b/src/lib/elput/elput_logind.c
@@ -17,6 +17,11 @@ _logind_session_active_send(Elput_Manager *em, Eina_Bool active)
17{ 17{
18 Elput_Event_Session_Active *ev; 18 Elput_Event_Session_Active *ev;
19 19
20 if (active)
21 _elput_input_enable(em);
22 else
23 _elput_input_disable(em);
24
20 ev = calloc(1, sizeof(Elput_Event_Session_Active)); 25 ev = calloc(1, sizeof(Elput_Event_Session_Active));
21 if (!ev) return; 26 if (!ev) return;
22 27