Re: [PATCH] selection: send selection events to all connected clients

2013-04-17 Thread Bengt Richter
On 04/15/2013 09:39 PM Bill Spitzak wrote: Pekka Paalanen wrote: Alright. I'm not too familiar with toolkits, so could you explain why toolkits need to access the selection at arbitrary times (specifically while unfocused), instead of only as a response to direct user input (which in all releva

Re: [PATCH] selection: send selection events to all connected clients

2013-04-16 Thread Pekka Paalanen
On Tue, 16 Apr 2013 08:41:16 -0700 Bill Spitzak wrote: > On 04/15/2013 11:54 PM, Pekka Paalanen wrote: > > > Drag & drop obviously has to use pointer focus, so no problem there. > > I guess I don't see that. I thought it was very common for the focus to > remain on the dragged-from application

Re: [PATCH] selection: send selection events to all connected clients

2013-04-16 Thread Bill Spitzak
On 04/15/2013 11:54 PM, Pekka Paalanen wrote: Drag & drop obviously has to use pointer focus, so no problem there. I guess I don't see that. I thought it was very common for the focus to remain on the dragged-from application, especially when click-to-type is used. It sounds like you are req

Re: [PATCH] selection: send selection events to all connected clients

2013-04-16 Thread Pekka Paalanen
On Mon, 15 Apr 2013 12:32:30 -0700 Bill Spitzak wrote: > Pekka Vuorela wrote: > > >> What I mean is it breaks the api, the api provided by toolkits to > >> access clipboard will not work at any time, a constraint that > >> doesn't exist in any other systems. > > > > Breaks how? On Qt you get cl

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Pekka Paalanen
On Mon, 15 Apr 2013 12:39:21 -0700 Bill Spitzak wrote: > Pekka Paalanen wrote: > > > Alright. I'm not too familiar with toolkits, so could you explain > > why toolkits need to access the selection at arbitrary times > > (specifically while unfocused), instead of only as a response to > > direct

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Bill Spitzak
Pekka Paalanen wrote: Alright. I'm not too familiar with toolkits, so could you explain why toolkits need to access the selection at arbitrary times (specifically while unfocused), instead of only as a response to direct user input (which in all relevant cases assigns the focus first)? I sure

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Bill Spitzak
Pekka Vuorela wrote: What I mean is it breaks the api, the api provided by toolkits to access clipboard will not work at any time, a constraint that doesn't exist in any other systems. Breaks how? On Qt you get clipboard by instantiating QClipboard which takes mode (global clipboard, selection

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Bill Spitzak
Yichao Yu wrote: I think a request that says "send me the next change the the clipboard" would work and match how Wayland is designed more than an api where the client turns "send me clipboard changes" on/off. Send next change will not work since it won't allow the client to know the content r

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Pekka Vuorela
On ma, 2013-04-15 at 10:05 -0400, Yichao Yu wrote: > On Mon, Apr 15, 2013 at 9:44 AM, Pekka Paalanen wrote: > >> > >> Clipboard manager (or all other programs that need clipboard > >> monitoring) may be special, but I don't see why it is necessary to > >> break every single toolkits' api by don't

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Pekka Paalanen
On Mon, 15 Apr 2013 10:05:44 -0400 Yichao Yu wrote: > On Mon, Apr 15, 2013 at 9:44 AM, Pekka Paalanen wrote: > > On Mon, 15 Apr 2013 09:08:44 -0400 > > Yichao Yu wrote: > > > >> On Mon, Apr 15, 2013 at 5:00 AM, Pekka Paalanen > >> wrote: > >> > On Mon, 15 Apr 2013 04:03:43 -0400 > >> > Yichao

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Rob Bradford
On Mon, Apr 15, 2013 at 10:05:44AM -0400, Yichao Yu wrote: > > Alright. I'm not too familiar with toolkits, so could you explain why > > toolkits need to access the selection at arbitrary times (specifically > > while unfocused), instead of only as a response to direct user input > > (which in all

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Yichao Yu
On Mon, Apr 15, 2013 at 9:44 AM, Pekka Paalanen wrote: > On Mon, 15 Apr 2013 09:08:44 -0400 > Yichao Yu wrote: > >> On Mon, Apr 15, 2013 at 5:00 AM, Pekka Paalanen >> wrote: >> > On Mon, 15 Apr 2013 04:03:43 -0400 >> > Yichao Yu wrote: >> > >> >> On Mon, Apr 15, 2013 at 3:45 AM, Pekka Paalanen

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Pekka Paalanen
On Mon, 15 Apr 2013 09:08:44 -0400 Yichao Yu wrote: > On Mon, Apr 15, 2013 at 5:00 AM, Pekka Paalanen > wrote: > > On Mon, 15 Apr 2013 04:03:43 -0400 > > Yichao Yu wrote: > > > >> On Mon, Apr 15, 2013 at 3:45 AM, Pekka Paalanen > >> wrote: > >> > On Sun, 14 Apr 2013 21:45:37 -0400 > >> > Yicha

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Yichao Yu
On Mon, Apr 15, 2013 at 5:00 AM, Pekka Paalanen wrote: > On Mon, 15 Apr 2013 04:03:43 -0400 > Yichao Yu wrote: > >> On Mon, Apr 15, 2013 at 3:45 AM, Pekka Paalanen >> wrote: >> > On Sun, 14 Apr 2013 21:45:37 -0400 >> > Yichao Yu wrote: >> > >> >> On Sun, Apr 14, 2013 at 9:33 PM, Matthias Clasen

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Rob Bradford
On 15 April 2013 02:33, Matthias Clasen wrote: > On Fri, Apr 12, 2013 at 1:33 PM, Yichao Yu wrote: >> A lot of useful features require clipboard access and monitoring >> without having a keyboard focus, e.g. clipboard action (klipper[1] and >> some download agents), command line access (IPython's

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Pekka Paalanen
On Mon, 15 Apr 2013 04:03:43 -0400 Yichao Yu wrote: > On Mon, Apr 15, 2013 at 3:45 AM, Pekka Paalanen > wrote: > > On Sun, 14 Apr 2013 21:45:37 -0400 > > Yichao Yu wrote: > > > >> On Sun, Apr 14, 2013 at 9:33 PM, Matthias Clasen > >> wrote: > >> > On Fri, Apr 12, 2013 at 1:33 PM, Yichao Yu >

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread nil
Yichao Yu writes: > On Mon, Apr 15, 2013 at 3:45 AM, Pekka Paalanen wrote: > > Allowing command line utilities the access to clipboard contents (or > > to take screenshots, equivalently), is a problem. Enabling them enables > > all spy programs, too. I'm not sure we can both enable them and stay

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Yichao Yu
On Mon, Apr 15, 2013 at 3:45 AM, Pekka Paalanen wrote: > On Sun, 14 Apr 2013 21:45:37 -0400 > Yichao Yu wrote: > >> On Sun, Apr 14, 2013 at 9:33 PM, Matthias Clasen >> wrote: >> > On Fri, Apr 12, 2013 at 1:33 PM, Yichao Yu >> > wrote: >> >> A lot of useful features require clipboard access and

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Pekka Paalanen
On Sun, 14 Apr 2013 21:45:37 -0400 Yichao Yu wrote: > On Sun, Apr 14, 2013 at 9:33 PM, Matthias Clasen > wrote: > > On Fri, Apr 12, 2013 at 1:33 PM, Yichao Yu > > wrote: > >> A lot of useful features require clipboard access and monitoring > >> without having a keyboard focus, e.g. clipboard ac

Re: [PATCH] selection: send selection events to all connected clients

2013-04-14 Thread Yichao Yu
On Sun, Apr 14, 2013 at 9:38 PM, Bill Spitzak wrote: > On 04/14/2013 06:33 PM, Matthias Clasen wrote: >> >> On Fri, Apr 12, 2013 at 1:33 PM, Yichao Yu wrote: >>> >>> A lot of useful features require clipboard access and monitoring >>> without having a keyboard focus, e.g. clipboard action (klippe

Re: [PATCH] selection: send selection events to all connected clients

2013-04-14 Thread Yichao Yu
On Sun, Apr 14, 2013 at 9:33 PM, Matthias Clasen wrote: > On Fri, Apr 12, 2013 at 1:33 PM, Yichao Yu wrote: >> A lot of useful features require clipboard access and monitoring >> without having a keyboard focus, e.g. clipboard action (klipper[1] and >> some download agents), command line access (

Re: [PATCH] selection: send selection events to all connected clients

2013-04-14 Thread Bill Spitzak
On 04/14/2013 06:33 PM, Matthias Clasen wrote: On Fri, Apr 12, 2013 at 1:33 PM, Yichao Yu wrote: A lot of useful features require clipboard access and monitoring without having a keyboard focus, e.g. clipboard action (klipper[1] and some download agents), command line access (IPython's %paste m

Re: [PATCH] selection: send selection events to all connected clients

2013-04-14 Thread Matthias Clasen
On Fri, Apr 12, 2013 at 1:33 PM, Yichao Yu wrote: > A lot of useful features require clipboard access and monitoring > without having a keyboard focus, e.g. clipboard action (klipper[1] and > some download agents), command line access (IPython's %paste magic). > This patch sends out selection even

Re: [PATCH] selection: send selection events to all connected clients

2013-04-14 Thread Yichao Yu
On Fri, Apr 12, 2013 at 4:22 PM, Jiergir Ogoerg wrote: >> A lot of useful features require clipboard access and monitoring >> without having a keyboard focus, e.g. clipboard action (klipper[1] and >> some download agents), command line access (IPython's %paste magic). >> This patch sends out selec

[PATCH] selection: send selection events to all connected clients

2013-04-12 Thread Jiergir Ogoerg
> A lot of useful features require clipboard access and monitoring > without having a keyboard focus, e.g. clipboard action (klipper[1] and > some download agents), command line access (IPython's %paste magic). > This patch sends out selection events to all clients when the > selection owner change

[PATCH] selection: send selection events to all connected clients, not only ones that has focus. This allows useful features like clipboard action and command line clipboard access.

2013-04-12 Thread Yichao Yu
From: Yichao Yu --- src/data-device.c | 61 --- 1 file changed, 18 insertions(+), 43 deletions(-) diff --git a/src/data-device.c b/src/data-device.c index 92ceb12..e5993a1 100644 --- a/src/data-device.c +++ b/src/data-device.c @@ -329,17 +329,

[PATCH] selection: send selection events to all connected clients

2013-04-12 Thread Yichao Yu
A lot of useful features require clipboard access and monitoring without having a keyboard focus, e.g. clipboard action (klipper[1] and some download agents), command line access (IPython's %paste magic). This patch sends out selection events to all clients when the selection owner changes no matte