Re: Roadmap for the future.
- From: Erik Bågfors <erik bagfors nu>
- To: Nat Friedman <nat nat org>
- Cc: "dashboard-hackers gnome org" <dashboard-hackers gnome org>
- Subject: Re: Roadmap for the future.
- Date: Fri, 20 Feb 2004 09:48:10 +1100
Hi
Regarding focus or no focus.
I believe both of the points below will be very hard to do for a
frontend written as a plugin.
For example, I doubt that the xchat python interface gives you
information about individual widgets inside xchat, I also know that the
perl-interface to vim doesn't give you that access. Neither do they
give you information about when that application is focused.
I think this means that we may have to patch applications instead of
writing plugins.
/Erik
On Thu, 2004-02-19 at 15:06, Nat Friedman wrote:
> I believe that the best way to do this is to add a 'focus_widget'
> parameter to the build_cluepacket function. This would be a
> widget the frontned would specify which always has focus whenever
> the context corresponding to it is active.
>
> Then, dashboard-frontend.c can check the widget to see if it has
> focus, and can walk up to the top-level application window and see
> if it has window manager focus. If the widget is focused and the
> window is focused, then the context is active and
> Cluepacket.Focused = true.
> This will give us part 1 of the behavior described above.
>
> To get part 2, we have to also hook up to the i-got-focus events
> on the window and the widget, so that when the context gains
> focus, we can send a new cluepacket to the dashboard.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]