On Fri, 6 Aug 2010 09:11:56 +1000
Erik de Castro Lopo <[email protected]> wrote:
> Dimitar Zhekov wrote:
>
> > You mean like this?
>
> Yes, a little like that, but I think it should be the default
> behaviour.
And so do I, but things like this usually meet some opposition when
pushed into Geany...
> My patch does not break your script. You can continue to use it
> if you prefer it.
I'll probably alter it to check a few well-known directories of mine,
and then fallback to the new default behaviour.
A slight change to your patch:
...
if (err == Success && result == Success)
{
if (type == XA_CARDINAL && format == 32 && nitems > 0)
ret = current_desktop[0];
XFree (current_desktop);
}
gdk_display_close (display);
...
will avoid the two returns, and close the display on unsuccessful
operation.
Under GDK_WINDOWING_WIN32, you can get the current desktop with
the "Window Station and Desktop Functions". But it's a name, not a
number.
--
E-gards: Jimmy
_______________________________________________
Geany-devel mailing list
[email protected]
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel