|
From: | Jan Djärv |
Subject: | Re: Killing a frame sometimes kills emacs |
Date: | Tue, 11 Oct 2011 19:56:10 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0 |
Tassilo Horn skrev 2011-10-11 08:46:
For me and I guess for most users, localhost:0, unix:0 (*), :0.0, and :0 are all the same in practice, only localhost:1 or :2 actually mean other displays. So I'd simply strip localhost and unix before the colon and dot-zeros. (Maybe there should be an option for that, or some lisp function that would be called to transform the display name if it is defined...)
It is probably better to use some heruistics to see if two displays are really the same. If the root window id and the default visual id are the same, they probably are the same display. You can throw in protocol version, vendor string, screen dimension checks also.
Jan D.
[Prev in Thread] | Current Thread | [Next in Thread] |