Re: [PATCH v4] xwm: let the shells decide the position of X windows

2015-12-15 Thread Hardening
Le 11/12/2015 19:57, Giulio Camuffo a écrit : > The xwm used to automatically send to Xwayland the position of X windows > when that changed, using the x,y of the primary view of the surface. > This works fine for the desktop shell but less so for others. > This patch adds a 'send_position' vfunc t

Re: [PATCH weston 5/5] dnd: Turn into a full blown example

2015-12-15 Thread Jonas Ådahl
On Tue, Dec 15, 2015 at 06:56:27PM +0100, Carlos Garnacho wrote: > In order to keep things simple, weston-dnd made a few choices that > turn out to be unrealistic, a few tweaks have been done to make it > less of a playground demo: > > - It now caters for copy/move operations, instead of just move

Re: [PATCH weston 4/5] data-device: Implement compositor-chosen actions

2015-12-15 Thread Jonas Ådahl
On Tue, Dec 15, 2015 at 06:56:26PM +0100, Carlos Garnacho wrote: > Set up a keyboard grab during drag-and-drop, so we can translate > modifiers into preferred actions. The compositor chosen action > is stored in the current weston_data_source in order to make it > accessible to the source/offer at

Re: [PATCH weston 3/5] client: Add DnD cursors to the managed cursors list

2015-12-15 Thread Jonas Ådahl
On Tue, Dec 15, 2015 at 06:56:25PM +0100, Carlos Garnacho wrote: > That way we'll be able to set the corresponding pointer surface to > a current DnD operation. > > Signed-off-by: Carlos Garnacho Reviewed-by: Jonas Ådahl > --- > clients/window.c | 16 > clients/window.h | 3

Re: [PATCH weston 2/5] data-device: Implement DnD actions

2015-12-15 Thread Jonas Ådahl
On Tue, Dec 15, 2015 at 06:56:23PM +0100, Carlos Garnacho wrote: > The policy in weston in order to determine the chosen DnD action is > deliberately simple, and is probably the minimals that any compositor > should be doing here. > > Besides honoring the set_actions requests on both wl_data_sourc

Re: [PATCH weston 1/5] data-device: Implement DnD progress notification

2015-12-15 Thread Jonas Ådahl
On Tue, Dec 15, 2015 at 06:56:21PM +0100, Carlos Garnacho wrote: > Weston now sends wl_data_source.drop_performed and .drag_finished in > order to notify about the different phases of DnD. s/drop_performed/dnd_drop_performed, and s/drag_finished/dnd_finished/. > > wl_data_source.cancelled is als

Re: [PATCH wayland 2/2] protocol: Add DnD actions

2015-12-15 Thread Jonas Ådahl
On Tue, Dec 15, 2015 at 06:56:24PM +0100, Carlos Garnacho wrote: > These 2 requests have been added: > > - wl_data_source.set_actions: Notifies the compositor of the available > actions on the data source. > - wl_data_offer.set_actions: Notifies the compositor of the available > actions on the

Re: [PATCH wayland 1/2] protocol: Improve data source notification around DnD progress

2015-12-15 Thread Jonas Ådahl
On Tue, Dec 15, 2015 at 06:56:22PM +0100, Carlos Garnacho wrote: > Currently, there's no means for the DnD origin to know whether the > destination is actually finished with the DnD transaction, short of > finalizing it after the first transfer finishes, or leaking it forever. > > But this poses o

[ANNOUNCE] libinput 1.1.3

2015-12-15 Thread Peter Hutterer
libinput 1.1.3 is now available. Only one change that affects users, and that one is limited to users of the Lenovo x220 with an updated touchpad firmware version 8.1. Please see http://who-t.blogspot.com/2015/12/libinput-and-lenovo-x220-touchpad-v8.1.html for details on this particular change. Al

[PATCH weston 2/5] data-device: Implement DnD actions

2015-12-15 Thread Carlos Garnacho
The policy in weston in order to determine the chosen DnD action is deliberately simple, and is probably the minimals that any compositor should be doing here. Besides honoring the set_actions requests on both wl_data_source and wl_data_offer, weston now will emit the newly added "action" events n

[PATCH weston 4/5] data-device: Implement compositor-chosen actions

2015-12-15 Thread Carlos Garnacho
Set up a keyboard grab during drag-and-drop, so we can translate modifiers into preferred actions. The compositor chosen action is stored in the current weston_data_source in order to make it accessible to the source/offer at the time of calculating the new action, but would conceptually be part of

[PATCH wayland/weston 0/7] drag-and-drop progress notification and actions

2015-12-15 Thread Carlos Garnacho
Hey, Here's another batch of the drag-and-drop fixes, this time all together because the last weston patches relies on both being in place. Overall there's just small wording changes to the previous patches. A small overview of the patches: - wayland 1/2 and weston 1/5: Implement drag-and-drop pr

[PATCH wayland 1/2] protocol: Improve data source notification around DnD progress

2015-12-15 Thread Carlos Garnacho
Currently, there's no means for the DnD origin to know whether the destination is actually finished with the DnD transaction, short of finalizing it after the first transfer finishes, or leaking it forever. But this poses other interoperation problems, drag destinations might be requesting several

[PATCH weston 3/5] client: Add DnD cursors to the managed cursors list

2015-12-15 Thread Carlos Garnacho
That way we'll be able to set the corresponding pointer surface to a current DnD operation. Signed-off-by: Carlos Garnacho --- clients/window.c | 16 clients/window.h | 3 +++ 2 files changed, 19 insertions(+) diff --git a/clients/window.c b/clients/window.c index 9d1e8b3..44e

[PATCH weston 1/5] data-device: Implement DnD progress notification

2015-12-15 Thread Carlos Garnacho
Weston now sends wl_data_source.drop_performed and .drag_finished in order to notify about the different phases of DnD. wl_data_source.cancelled is also used as mentioned in the docs, being emitted also on DnD when the operation is meant to fail (eg. source and dest didn't agree on a mimetype). T

[PATCH wayland 2/2] protocol: Add DnD actions

2015-12-15 Thread Carlos Garnacho
These 2 requests have been added: - wl_data_source.set_actions: Notifies the compositor of the available actions on the data source. - wl_data_offer.set_actions: Notifies the compositor of the available actions on the destination side, plus the preferred action. Out of the data from these req

[PATCH weston 5/5] dnd: Turn into a full blown example

2015-12-15 Thread Carlos Garnacho
In order to keep things simple, weston-dnd made a few choices that turn out to be unrealistic, a few tweaks have been done to make it less of a playground demo: - It now caters for copy/move operations, instead of just move, which still remains the default nonetheless. - As "move" operations are

Re: Touch events not reviving with wayland-ivi-extenssion 1.4.0 and wayland video sink

2015-12-15 Thread Vikas Patil
If I force to pass the if condition as follows using the surface id even though surfaces doesn't match, it is working. Does this might be due to the way I created the surface 90? Surface 90 also has subsurface, does it anyway related to subsurface? Alos "grab->touch->focus->surface" what this surf

Re: Inconsistency with scaler extension?

2015-12-15 Thread Bill Spitzak
I agree that the problems the poster is having is due to not sending damage requests, but I am not really certain the description of the requirement to send damage is correct. I am pretty certain the plan for buffer_damage is to indicate the area that would have to be uploaded to the graphics card

Re: [RFC wayland-protocols 1/1] Add Primary Selection Protocol Version 1

2015-12-15 Thread Bill Spitzak
On Mon, Dec 14, 2015 at 9:13 AM, Pekka Paalanen wrote: > On Mon, 14 Dec 2015 10:39:05 -0500 > Lyude wrote: > > > On Sat, 2015-12-12 at 11:29 -0800, Bill Spitzak wrote: > > > I don't think you need the word "primary" in there. It can be called > the > > > selection. The other thing this is confus

Re: [PATCH wayland v3] protocol: add support for cross-interface enum attributes

2015-12-15 Thread Bill Spitzak
I believe this is correct and worth using. The only difference with mine is that the protocol-to-docbook.xsl puts the enum arg handling into it's own top-level clause, rather than as an if statement. This I think makes it more consistent with the other argument special-cases (one for object ids, a

Re: [RFC wayland-protocols 1/1] Add Primary Selection Protocol Version 1

2015-12-15 Thread Hans de Goede
Hi, On 14-12-15 22:20, Lyude wrote: On Mon, 2015-12-14 at 10:45 -0800, Bill Spitzak wrote: On Mon, Dec 14, 2015 at 9:13 AM, Pekka Paalanen wrote: On Mon, 14 Dec 2015 10:39:05 -0500 Lyude wrote: On Sat, 2015-12-12 at 11:29 -0800, Bill Spitzak wrote: I don't think you need the word "prima