[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [E-devel] ibox patch for click to focus



On Fri, 14 Apr 2006 00:12:22 +0900 "David Stevenson" <david.35472@gmail.com>
babbled:

> 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.

this is going to have to wait unfortunately. i haven't done ibox yet... still
doing ibar... :/

> 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


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster@rasterman.com
裸好多
Tokyo, Japan (東京 日本)