[Geany-Devel] Focus lost when last document closed

Dimitar Zhekov dimitar.zhekov at xxxxx
Tue May 28 16:54:45 UTC 2013


On Mon, 27 May 2013 22:12:35 +0200
Pallai Roland <pallair at magex.hu> wrote:

> 2013/5/27 Dimitar Zhekov <dimitar.zhekov at gmail.com>:
> >
> >> Do you agree that the problem exists and should be solved?
> >
> > No. [...]
>
> [...]

Long story short, why don't you write a plugin that connects to
"document-close", and focuses your favorite widget when the last
document is closed? That'll certainly be easier and faster than
adding a function to the plugin API and convincing all plugin
developers to call it, for a reason which may not sound entirely
convincing to them.

Being a plugin, you can extend it as you see fit - for example
by keeping history of the focused widgets and going back to the
last one that still exists, going back on each document close etc.

Finally, a plugin that does something sensible, causes no crashes
and avoids dirty hacks, may well be accepted in geany-plugins.

-- 
E-gards: Jimmy


More information about the Devel mailing list