Re: pre-announce exmh-2.7.2

[email protected] Fri, 07 Jan 2005 17:37:54 -0500
Newsgroups gmane.mail.exmh.devel
Message-ID <[email protected]>
On Fri, 07 Jan 2005 14:08:28 PST, Brent Welch said:

> I'd hesitate to change the implementation of exwin.tcl for
> remembering window locations.  That has worked for years for

I hesitated as well..  thus the "somebody check this" patch. ;)

> all other exmh windows - what is it about the message window
> that is different ?  I believe that if you use the "Dismiss"
> button in the msg window then the location will be remembered
> correctly.  If you want the geometry to be saved when the
> user destroys the window, you need a 
>   wm protocol .msgframe WM_DELETE_WINDOW {Exwin_Dismiss .msgframe}
> hook that calls Exwin_Dismiss

The odd part is that it *is* getting saved:

% grep msgframe .exmh/exmh-defaults 
msgframe.geometry:      900x800+200+10
*msgframe.position:     +100+124

(and 'msgframe' is also in the saved *exwinPaths line, which is too long to 
paste usefully here).

So it looks like the geometry/position isn't *applied* when the window is
re-created at next startup.  Which points at Exwin_Toplevel, where the
geometry is applied....

As an aside, I suspect that both problems with .msgframe will *also*
apply to .ftocframe if that's a toplevel - I suspect that it's just not
as heavily used so nobody's noticed on .ftocframe.

> please don't "fix" exin.tcl, OK?
> I've added the WM_DELETE_WINDOW hook

Good, that probably should be there regardless..

> Exwin_Dismiss will be perfect because it'll unmap the window.
> However, you need something to re-show the menu and position it,
> which is the Exwin_Toplevel command.
> 
> I'll fiddle with this.

OK, I wasn't *positive* that Exwin_Toplevel was safe to re-invoke, and
I had *no* idea where to put the check - the place we're currently dying
is probably *way* too late...

_______________________________________________
Exmh-workers mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/exmh-workers
signature.asc (application/pgp-signature, 226 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Exmh version 2.5 07/13/2001

iD8DBQFB3w9BcC3lWbTT17ARAm9jAJ9rPwa3s9d/CnTVtb2UL9W2ZmqQTgCg1add
we2FPIYjD4mzJWqRuFtCEAw=
=I0EU
-----END PGP SIGNATURE-----