Hello World, Hello Enrico,
geany: 0.16 "Argon" Windows: XP SP3, all patches applied
If I open geany and set it at a certain position, it does open an a completely different position and size after having closed and re-opened it. Although the checkbox "Fensterposition und -grösse speichern" is checked.
It might be a problem, if I open a second instance and close it before closing the "main" instance?
Best regards Andreas
On Tue, 24 Mar 2009 14:24:53 +0100, Andreas wrote:
Hello World, Hello Enrico,
geany: 0.16 "Argon" Windows: XP SP3, all patches applied
If I open geany and set it at a certain position, it does open an a completely different position and size after having closed and re-opened it. Although the checkbox "Fensterposition und -grösse speichern" is checked.
It might be a problem, if I open a second instance and close it before closing the "main" instance?
No, but when you close the second instance after the first one. But this shouldn't be new behaviour nor Windows-specific. Geany saves the window geometry (size&position) of the last running instance. More generally, this is true for all global settings.
In other words, when Geany is quit, it overwrites the config files with the settings of this instance regardless of the previous contents of the config file.
While this might seem to be stupid, Geany is simply not designed to run more than one instance at once and I don't feel like changing this. Anyway, as some kind of workaround, "nested" multiple instances should work. Where "nested" mean: Start Geany (it's your main instance), then start another one, then start a third one. Then close first the last started instance, then the second instance and finally the first one. This way, it should work to some extend.
Regards, Enrico
On 24.03.2009 19:43, Enrico Tröger wrote:
[snip]
In other words, when Geany is quit, it overwrites the config files with the settings of this instance regardless of the previous contents of the config file.
That's actually what I expected/
While this might seem to be stupid, Geany is simply not designed to run more than one instance at once and I don't feel like changing this. Anyway, as some kind of workaround, "nested" multiple instances should work. Where "nested" mean: Start Geany (it's your main instance), then start another one, then start a third one. Then close first the last started instance, then the second instance and finally the first one. This way, it should work to some extend.
I do. I always close my main or first instance, which I move to a certain position, after all other instances. But I have the problems anyway...
Best regards Andreas
On Wed, 25 Mar 2009 07:58:07 +0100, Andreas wrote:
On 24.03.2009 19:43, Enrico Tröger wrote:
[snip]
In other words, when Geany is quit, it overwrites the config files with the settings of this instance regardless of the previous contents of the config file.
That's actually what I expected/
While this might seem to be stupid, Geany is simply not designed to run more than one instance at once and I don't feel like changing this. Anyway, as some kind of workaround, "nested" multiple instances should work. Where "nested" mean: Start Geany (it's your main instance), then start another one, then start a third one. Then close first the last started instance, then the second instance and finally the first one. This way, it should work to some extend.
I do. I always close my main or first instance, which I move to a certain position, after all other instances. But I have the problems anyway...
Strange. When starting/closing/re-starting only one instance, Geany saves and restores the window size correctly? If so, everything is fine, more is not meant to be supported :).
More seriously, detailed instructions to reproduce would help. I'm not able to get the first instance wrongly positioned or sized when closing it always at last. This does not mean there isn't maybe a bug, just that I don't know how to reproduce it :).
Regards, Enrico
On 25.03.2009 21:04, Enrico Tröger wrote:
[snip]
I do. I always close my main or first instance, which I move to a certain position, after all other instances. But I have the problems anyway...
Strange. When starting/closing/re-starting only one instance, Geany saves and restores the window size correctly? If so, everything is fine, more is not meant to be supported :).
More seriously, detailed instructions to reproduce would help. I'm not able to get the first instance wrongly positioned or sized when closing it always at last. This does not mean there isn't maybe a bug, just that I don't know how to reproduce it :).
Of course, since I've started writing here, it works now (don't know why, actually) I set geany usually on the top left position. May it be a problem with the coordinates if the position is not exact (0,0), but maybe negative values?
Thanks and best regards Andreas
On Fri, 27 Mar 2009 08:07:00 +0100, Andreas wrote:
On 25.03.2009 21:04, Enrico Tröger wrote:
[snip]
I do. I always close my main or first instance, which I move to a certain position, after all other instances. But I have the problems anyway...
Strange. When starting/closing/re-starting only one instance, Geany saves and restores the window size correctly? If so, everything is fine, more is not meant to be supported :).
More seriously, detailed instructions to reproduce would help. I'm not able to get the first instance wrongly positioned or sized when closing it always at last. This does not mean there isn't maybe a bug, just that I don't know how to reproduce it :).
Of course, since I've started writing here, it works now (don't know
:)
I set geany usually on the top left position. May it be a problem with the coordinates if the position is not exact (0,0), but maybe negative values?
This was a great hint. I'm not sure whether this solves your problem but after testing a bit, I noticed that getting negative window coordinates isn't anything bad, it just means it's above or left to the upper left corner (it's completely obvious once noticed). The problem was more or less that we need to have the window realised (read: shown) before we realiably can set the position on screen (at least on Windows). So I changed the code a bit and it seems to work now, at least I think so. Any feedback is welcome.
Changes were made in SVN r3666.
(http://nightly.geany.org/win32/geany_win32_nightly.zip already has the relevant changes.)
Regards, Enrico
On Fri, 27 Mar 2009 17:35:20 +0100, Enrico wrote:
I set geany usually on the top left position. May it be a problem with the coordinates if the position is not exact (0,0), but maybe negative values?
This was a great hint. I'm not sure whether this solves your problem but after testing a bit, I noticed that getting negative window coordinates isn't anything bad, it just means it's above or left to the upper left corner (it's completely obvious once noticed). The problem was more or less that we need to have the window realised (read: shown) before we realiably can set the position on screen (at least on Windows). So I changed the code a bit and it seems to work now, at least I think so. Any feedback is welcome.
Andreas, did you test it?
Regards, Enrico
On 03.04.2009 15:33, Enrico Tröger wrote:
[snip]
So I changed the code a bit and it seems to work now, at least I think so. Any feedback is welcome.
Andreas, did you test it?
Sorry, not yet. Can I just unzip the nightly build into the install directory or should I choose another folder?
Best regards Andreas
On Fri, 03 Apr 2009 15:54:48 +0200, Andreas wrote:
On 03.04.2009 15:33, Enrico Tröger wrote:
[snip]
So I changed the code a bit and it seems to work now, at least I think so. Any feedback is welcome.
Andreas, did you test it?
Sorry, not yet. Can I just unzip the nightly build into the install directory or should I choose another folder?
Just unzip it into the installation directory, it will override the existing files and should just work then (remember when I'm saying 'it should work' related to Windows, this might not be as true as it may sound, so I'd suggest a backup before, lol).
Regards, Enrico