discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=2ce5dfa33f30eb5c02a0dccc184f94d8fe09bcd2

commit 2ce5dfa33f30eb5c02a0dccc184f94d8fe09bcd2
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue Jul 21 14:25:16 2015 -0400

    add wl compositor desklock hooks to add grabs during lock
---
 src/bin/e_comp_wl.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 0543d53..a3f8ebf 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -2666,6 +2666,18 @@ disp_err:
    return EINA_FALSE;
 }
 
+static Eina_Bool
+_e_comp_wl_desklock_show(void)
+{
+   return e_comp_grab_input(1, 1);
+}
+
+static void
+_e_comp_wl_desklock_hide(void)
+{
+   e_comp_ungrab_input(1, 1);
+}
+
 /* public functions */
 
 /**
@@ -2746,6 +2758,9 @@ e_comp_wl_init(void)
    e_client_hook_add(E_CLIENT_HOOK_RESIZE_END,
                      _e_comp_wl_client_cb_resize_end, NULL);
 
+   e_desklock_show_hook_add(_e_comp_wl_desklock_show);
+   e_desklock_hide_hook_add(_e_comp_wl_desklock_hide);
+
    _last_event_time = ecore_loop_time_get();
 
    return EINA_TRUE;

-- 


Reply via email to