From e9de478b03c3a1c38d355d6eaa6b883f4c10210e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 17 Aug 2015 14:27:47 -0400 Subject: [PATCH] explicitly grab compositor on ibar focus --- src/modules/ibar/e_mod_main.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c index 8022d85b1..dd3f12682 100644 --- a/src/modules/ibar/e_mod_main.c +++ b/src/modules/ibar/e_mod_main.c @@ -2526,12 +2526,8 @@ _ibar_go_focus(void) IBar *b; if (_ibar_focus_win) return; + if (!e_comp_grab_input(0, 1)) return; _ibar_focus_win = e_comp->ee_win; - if (!e_grabinput_get(0, 0, _ibar_focus_win)) - { - _ibar_focus_win = 0; - return; - } _ibar_key_down_handler = ecore_event_handler_add (ECORE_EVENT_KEY_DOWN, _ibar_focus_cb_key_down, NULL); if (!_ibar_key_down_handler) goto err; @@ -2544,7 +2540,7 @@ err: _ibar_key_down_handler = NULL; if (_ibar_focus_win) { - e_grabinput_release(0, _ibar_focus_win); + e_comp_ungrab_input(0, 1); } _ibar_focus_win = 0; } @@ -2557,7 +2553,7 @@ _ibar_go_unfocus(void) if (!_ibar_focus_win) return; b = _ibar_focused_find(); if (b) _ibar_unfocus(b); - e_grabinput_release(0, _ibar_focus_win); + e_comp_ungrab_input(0, 1); _ibar_focus_win = 0; ecore_event_handler_del(_ibar_key_down_handler); _ibar_key_down_handler = NULL;