There was a request from a "click-to-focus" user to have windows automatically focused when they are uniconified using the ibox module. This seems like a reasonable behavioural expectation, since we are clicking on "the window" - it's just in its iconified state when we do so.
The patch below achieves this for both click to focus focus policy and for the "always-click-to-focus" option.
I've not committed this directly due to the pending gadget changes.
David
Index: e_mod_main.c
===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/ibox/e_mod_main.c,v
retrieving revision 1.44
diff -u -r1.44 e_mod_main.c
--- e_mod_main.c 12 Mar 2006 16:12:58 -0000 1.44
+++ e_mod_main.c 13 Apr 2006 14:56:52 -0000
@@ -933,7 +933,10 @@
ev = event_info;
ic = data;
if (ev->button == 1)
- e_border_uniconify(ic->border);
+ {
+ e_border_uniconify(ic->border);
+ e_focus_event_mouse_down(ic->border);
+ }
}
static void
- [E-devel] ibox patch for click to focus David Stevenson
- Re: [E-devel] ibox patch for click to focus The Rasterman