[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Live CD and others general GNUstep remarks
From: |
Nicolas Roard |
Subject: |
Re: Live CD and others general GNUstep remarks |
Date: |
Wed, 9 Feb 2005 00:33:44 +0000 |
Le 9 févr. 05, à 00:24, Fred Kiefer a écrit :
There was also the problem that some apps had their windows "outside"
the screen. Actually, at the moment
the windows' positions are encoded in the gorm files... and imho
that's a bit wrong ! with wmaker it's not that much
of a problem, because you can move the windows with alt-clicking...
but that's only true if you know that trick :-)
Frankly, the windows' position shouldn't be encoded in Gorm; it's
just wrong.
This sounds like it needs to be changed. Perhaps we could use similar
code as is applied for default settings (see below). We would need to
archive the screen rectangle along with the window frame. Gregory, as
window encoding is very much Gorm related, I would like to get your
opinion on this first.
Well, it's not that -- it's just that Gorm shouldn't save the position,
so the windows position will be the windows manager problem -- which is
exactly
its role. Then after the position will be saved in the defaults as
needed, but that's ok.
Another related problem (not specific to the live cd) is that apps
save their windows position in the defaults
database -- that's good, but there's a slight problem: If the user
change resolution to a lower one...
One solution, perhaps, would be to associate the positions with the
actual resolution -- so you'd save the positions
for each resolution...
No, this should not cause any problem, the code already adopts the
window position to the screen size, just as you did suggest
(setFrameFromString:). It does not try to change the size of the
window, though.
hmm right.. well it should at least take in account the height of the
windows, to modify the window position to have at least the titlebar on
the screen...
Although having positions encoded by resolution would still be, imho,
better. In a big res I won't place my windows like I place them in
800x600 ...
Cheers,
--
Nicolas Roard
"Any sufficiently advanced technology is indistinguishable from magic."
-Arthur C. Clarke
Message not available
Message not available