[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: X selections and multi tty
From: |
Chong Yidong |
Subject: |
Re: X selections and multi tty |
Date: |
Thu, 26 May 2011 23:43:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
> I think it only checks to see if it owns the selection *on the same
> "display"*, just via some other "terminal" (since several terminals can
> share the same display).
On second thought, I'm still a bit confused. When you say that two
terminals can share the same display, are you literally referring to
pointers to X display structures? i.e.
t1->display_info.x->display == t2->display_info.x->display
with t1 not the same terminal as t2? I don't think that's possible,
since the (Display *) pointers are received from XOpenDisplay in
x_term_init, and each x_display_info has a one to one correspondences
with a terminal.
By "display", I think you're referring to equivalence under
same_x_server(), but with different (Display *) pointers, right?
If that's the case, making Vselection_alist a terminal parameter is
exactly TRT, since interactions with the X server for selection
operations are all done with (Display *).