Re: [PATCH] gitk: don't save the geometry to rc file on exit
- From
Paul Mackerras <paulus@samba.org>
- Date
- Mar 6, 2008, 23:10 UTC
- Message-ID
- <18384.31184.663885.595827@cargo.ozlabs.ibm.com>
- In-Reply-To
- <57518fd10803060459m6e3ffc00n388721ad2e5975ad@mail.gmail.com>
Jonathan del Strother writes:
Show 8 quoted lines
> This almost works on OS X. The only problem is that it's not taking > into account menubars and windowbars. eg, if I have a screen > resolution of 640x480, setting the window _content_ to that size will > make the entire window including its titlebar about 500px tall. Not > only that, but the system-wide menubar at the top of the screen also > reduces the available space, meaning that the maximum window size > ought to be around 640x456. (If you wanted to get even pickier, that > will changing depending on the interface resolution...)
Do you know of any way for an application to determine how big it can be, then?
> Presumably your patch does nothing to move gitk back on screen if the > monitor it was on last time has gone away? Or are we still blaming > the window manager for that?
With the patch it no longer specifies a position, so yes we blame the window manager now if it doesn't put the window somewhere visible. :)
Paul.