discomfitor pushed a commit to branch master.
commit 2d55999aad4c2bea472a1a42390c0e2da6564e9d
Author: Mike Blumenkrantz <[email protected]>
Date: Tue May 7 13:11:05 2013 +0100
reuse comp canvas for ibar grab win
---
src/modules/ibar/e_mod_main.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c
index 8f75b24..0144c58 100644
--- a/src/modules/ibar/e_mod_main.c
+++ b/src/modules/ibar/e_mod_main.c
@@ -1699,11 +1699,9 @@ _ibar_go_focus(void)
if (_ibar_focus_win) return;
man = e_manager_current_get();
if (!man) return;
- _ibar_focus_win = ecore_x_window_input_new(man->root, -10, -20, 1, 1);
- ecore_x_window_show(_ibar_focus_win);
+ _ibar_focus_win = e_comp_get(man)->ee_win;
if (!e_grabinput_get(0, 0, _ibar_focus_win))
{
- ecore_x_window_free(_ibar_focus_win);
_ibar_focus_win = 0;
return;
}
@@ -1720,7 +1718,6 @@ err:
if (_ibar_focus_win)
{
e_grabinput_release(0, _ibar_focus_win);
- ecore_x_window_free(_ibar_focus_win);
}
_ibar_focus_win = 0;
}
@@ -1734,7 +1731,6 @@ _ibar_go_unfocus(void)
b = _ibar_focused_find();
if (b) _ibar_unfocus(b);
e_grabinput_release(0, _ibar_focus_win);
- ecore_x_window_free(_ibar_focus_win);
_ibar_focus_win = 0;
ecore_event_handler_del(_ibar_key_down_handler);
_ibar_key_down_handler = NULL;
--
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may