Re: More about clipboard and selection in wayland

2013-04-04 Thread Yichao Yu
Anyone know about clipboard? On Sat, Mar 30, 2013 at 11:39 PM, Yichao Yu wrote: > Hi, > > I have already sent a email about the clipboard and selection in > wayland a few weeks ago[1] (mainly about middle button paste). After > reading more about clipboard and selection protoco

More about clipboard and selection in wayland

2013-03-30 Thread Yichao Yu
Hi, I have already sent a email about the clipboard and selection in wayland a few weeks ago[1] (mainly about middle button paste). After reading more about clipboard and selection protocol in wayland, I have more questions about the limitation of the protocol. 1, as mentioned in my previous

Re: Clipboard and selection in wayland.

2013-03-16 Thread Yichao Yu
On Tue, Mar 12, 2013 at 7:19 PM, Yichao Yu wrote: > On Tue, Mar 12, 2013 at 12:51 PM, Bill Spitzak wrote: >> On 03/11/2013 07:56 PM, Yichao Yu wrote: >> >>> It may depends on how you define selecting but the point here is the >>> content you start dragging should never clear the current PRIMARY >

Re: Clipboard and selection in wayland.

2013-03-12 Thread Yichao Yu
On Tue, Mar 12, 2013 at 12:51 PM, Bill Spitzak wrote: > On 03/11/2013 07:56 PM, Yichao Yu wrote: > >> It may depends on how you define selecting but the point here is the >> content you start dragging should never clear the current PRIMARY >> selection (use x11 name to avoid ambiguity), e.g. if yo

Re: Clipboard and selection in wayland.

2013-03-12 Thread Bill Spitzak
On 03/11/2013 07:56 PM, Yichao Yu wrote: It may depends on how you define selecting but the point here is the content you start dragging should never clear the current PRIMARY selection (use x11 name to avoid ambiguity), e.g. if you drag the flower in the weston dnd demo, that shouldn't change w

Re: Clipboard and selection in wayland.

2013-03-11 Thread Yichao Yu
On Mon, Mar 11, 2013 at 2:25 PM, Bill Spitzak wrote: > Yichao Yu wrote: > >> I think the middle button paste function is very different from >> drag-and-drop. It's more like a auto-copy-clipboard. For >> drag-and-drop, the client that starts the dnd (therefore provide the >> data), should have foc

Re: Clipboard and selection in wayland.

2013-03-11 Thread Bill Spitzak
Yichao Yu wrote: I think the middle button paste function is very different from drag-and-drop. It's more like a auto-copy-clipboard. For drag-and-drop, the client that starts the dnd (therefore provide the data), should have focus but isn't(haven't been) necessarily selecting anything. While fo

Re: Clipboard and selection in wayland.

2013-03-11 Thread Yichao Yu
On Mon, Mar 11, 2013 at 1:19 PM, Bill Spitzak wrote: > I think the solution is for "middle-button paste" to be done using the drag > & drop mechanism, which is different than the selection. > > If the user selects an object and then clicks the middle mouse button, the > result should be the same a

Re: Clipboard and selection in wayland.

2013-03-11 Thread Bill Spitzak
I think the solution is for "middle-button paste" to be done using the drag & drop mechanism, which is different than the selection. If the user selects an object and then clicks the middle mouse button, the result should be the same as if they instead dragged the selected object and then rele

Re: Clipboard and selection in wayland.

2013-03-09 Thread Yichao Yu
On Sun, Mar 10, 2013 at 12:07 AM, Scott Moreau wrote: > Hi Yichao, > > On Sat, Mar 9, 2013 at 9:47 PM, Yichao Yu wrote: >> >> Hi, >> >> In X11 there are CLIPBOARD and PRIMARY selection each correspond to >> the current clipboard and selected content and applications can >> monitor the change of t

Re: Clipboard and selection in wayland.

2013-03-09 Thread Scott Moreau
Hi Yichao, On Sat, Mar 9, 2013 at 9:47 PM, Yichao Yu wrote: > Hi, > > In X11 there are CLIPBOARD and PRIMARY selection each correspond to > the current clipboard and selected content and applications can > monitor the change of them using XFixes. In wayland, I have found > wl_data_device which I

Clipboard and selection in wayland.

2013-03-09 Thread Yichao Yu
Hi, In X11 there are CLIPBOARD and PRIMARY selection each correspond to the current clipboard and selected content and applications can monitor the change of them using XFixes. In wayland, I have found wl_data_device which I suppose should do the similar thing. The question is, since there is only