[ANNOUNCE] libinput 1.1.6

2016-02-04 Thread Peter Hutterer
libinput 1.1.6 is now available. This release has a couple of noticable changes over the last one. The calculation of finger motion for multifinger gestures (including two-finger scrolling) was buggy. A slow two-finger motion could double the effective speed under some circumstances, causing scr

Re: Using Soft Keys with Weston & Libinput

2016-02-04 Thread Peter Hutterer
On Thu, Feb 04, 2016 at 10:38:18AM +, Ucan, Emre (ADITG/SW1) wrote: > Hi, > > We want to use soft keys with weston. > > The use-case is very similar to android that the touch panel is bigger than > the display. > The out of display touch events should be routed to the clients as key events.

Re: [PATCH] cosmetic: add an space after if

2016-02-04 Thread Bryce Harrington
On Thu, Feb 04, 2016 at 09:48:21PM +0100, Sergi Granell wrote: > --- > src/wayland-shm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Hi Sergi, Thanks, pushed both this and the other whitespace fix: To ssh://git.freedesktop.org/git/wayland/wayland 369b646..d335143 master -> maste

Re: [PATCH weston] xwm: Don't clear the selection if it has no text type available

2016-02-04 Thread Bryce Harrington
On Thu, Feb 04, 2016 at 11:37:36PM +0100, Carlos Garnacho wrote: > Hi!, > > On Mon, Feb 1, 2016 at 9:36 PM, Derek Foreman wrote: > > weston maintains a copy of the most recently selected "thing" - it picks > > the first available type when it copies, and saves that one only. > > > > When an appli

Re: [PATCH] xwayland: Clear pending cursor frame callbacks on pointer enter

2016-02-04 Thread Jonas Ådahl
On Feb 5, 2016 12:53 AM, "Rui Matos" wrote: > > The last cursor frame we commited before the pointer left one of our > surfaces might not have been shown. In that case we'll have a cursor > surface frame callback pending which we need to clear so that we can > continue submitting new cursor frames

Regarding shm_pool and buffer.

2016-02-04 Thread nicesj
Dear all, I can learn many things from this mailing list, thank you very much. I have one more doubt about relations between memory pool and buffer. I read a doc of wayland and it explains a wl_buffer can be created from shm-pool. but in the example code, after creates the buffer from pool, at

Re: [PATCH weston] xwm: Don't clear the selection if it has no text type available

2016-02-04 Thread Carlos Garnacho
Hi!, On Mon, Feb 1, 2016 at 9:36 PM, Derek Foreman wrote: > weston maintains a copy of the most recently selected "thing" - it picks > the first available type when it copies, and saves that one only. > > When an application quits weston will make the saved selection active. > > When xwm sees the

[PATCH] cosmetic: add an space after if

2016-02-04 Thread Sergi Granell
--- src/wayland-shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland-shm.c b/src/wayland-shm.c index 8e7adc9..a4343a4 100644 --- a/src/wayland-shm.c +++ b/src/wayland-shm.c @@ -117,7 +117,7 @@ format_is_supported(struct wl_client *client, uint32_t format)

[PATCH] cosmetic: use tabs instead of spaces

2016-02-04 Thread Sergi Granell
--- src/wayland-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland-util.c b/src/wayland-util.c index 3f95877..748476a 100644 --- a/src/wayland-util.c +++ b/src/wayland-util.c @@ -123,7 +123,7 @@ wl_array_add(struct wl_array *array, size_t size) if (array

Re: [PATCH wayland] scanner: Fix oddities in copyright printing

2016-02-04 Thread Bryce Harrington
On Tue, Feb 02, 2016 at 01:23:01PM -0800, Jon A. Cruz wrote: > On 02/02/2016 12:56 PM, Derek Foreman wrote: > >Some copyright strings could result in broken generated header files with > >unmatched */ > > > >This change: > >Runs the loop long enough so the copyright[i] == 0 test can actually > >hap

Re: [PATCH wayland] scanner: Fix oddities in copyright printing

2016-02-04 Thread Bryce Harrington
On Tue, Feb 02, 2016 at 02:56:57PM -0600, Derek Foreman wrote: > Some copyright strings could result in broken generated header files with > unmatched */ > > This change: > Runs the loop long enough so the copyright[i] == 0 test can actually > happen. (if there was no \n no copyright text was prin

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

2016-02-04 Thread Carlos Garnacho
Hi!, Chiming in late... On Thu, Jan 7, 2016 at 3:50 AM, Lyude wrote: > Signed-off-by: Lyude > --- > > Notes: > Changes since V2 > * Bunch of grammatical/wording fixes from whot > * Addition of wp_primary_selection_offer::end_offers, for marking the end >

Re: [PATCH wayland-protocols v2] xdg-shell: Introduce xdg_tooltip

2016-02-04 Thread Bill Spitzak
On Wed, Feb 3, 2016 at 1:05 PM, Jasper St. Pierre wrote: > On Wed, Feb 3, 2016 at 1:00 PM, Bill Spitzak wrote: > > > > > > On Wed, Feb 3, 2016 at 11:36 AM, Jasper St. Pierre < > jstpie...@mecheye.net> > > wrote: > >> > >> set_parent was moved to xdg_toplevel. Perhaps that's a good idea, > >> per

Re: [PATCH wayland-protocols v2] xdg-shell: Introduce xdg_tooltip

2016-02-04 Thread Bill Spitzak
On Wed, Feb 3, 2016 at 11:36 AM, Jasper St. Pierre wrote: > set_parent was moved to xdg_toplevel. Perhaps that's a good idea, > perhaps it's not. This does mean that a tooltip's parent can never > change, and a popup's parent can never change. That can help for > getting grab semantics right, tho

Re: [PATCH v2 weston 05/13] tablet: handle tablet cursors in the compositor

2016-02-04 Thread Bill Spitzak
I don't understand this, it seems very redundant with what you propose to put into the compositor. As far as I can tell, you already require the compositor to hide the cursor when the tool leaves proximity and to choose the last-set cursor when a tool enters proximity. Seems to me your proximity_o

Re: [PATCH v2 weston 07/13] client: Add tablet cursor support into libtoytoolkit

2016-02-04 Thread Bill Spitzak
Does toytoolkit really need to support animated cursors? If so it would be nice to animate the normal cursor, too, and perhaps demonstrate code reuse for this. On Tue, Feb 2, 2016 at 9:28 PM, Peter Hutterer wrote: > From: Stephen Chandler Paul > > Again, a lot of this is code that has been re

Re: [PATCH wayland-protocols] text: Create second version of text input protocol

2016-02-04 Thread Bill Spitzak
On Tue, Feb 2, 2016 at 4:58 AM, Jan Arne Petersen wrote: > > > On 29/01/16 00:33, Bill Spitzak wrote: > > > > > > On Wed, Jan 27, 2016 at 11:52 PM, Jan Arne Petersen > > wrote: > > > > > > + Text is generally UTF-8 encoded, indices and lengths are in > > by

Re: [PATCH wayland-protocols] text: Create second version of text input protocol

2016-02-04 Thread Bill Spitzak
On Tue, Feb 2, 2016 at 5:02 AM, Jan Arne Petersen wrote: > > > Besides allowing the user to return to a misspelled word, it may make > > sense to return to a preedit. I'm not sure as I have no experience with > > Asian input methods. But it does seem possible. > > Sorry no toolkit supports that.

Re: [PATCH v3 wayland-protocols] Add the tablet protocol

2016-02-04 Thread Bill Spitzak
On Tue, Feb 2, 2016 at 2:37 PM, Jason Gerecke wrote: > > > I think a lot of software treats the tilt information as actually the > > position of a point some distance up the pen relative to the tip. I would > > That's certainly true for GIMP and Krita at least (see [1] and [2]). > Its incorrect,

Re: [PATCH libinput] evdev: disable the mode button on the Cyborg RAT 5

2016-02-04 Thread Joel Duncan
​​ Hi guys, Not being a libinput dev I was looking for advice on using this patch. I noticed that a lot of the RAT config was in /test. After compiling the driver and installing it the problem still persists. I'm assuming it's due to needing a flag when compiling to include /test components? Any

Re: [PATCH libinput] evdev: disable the mode button on the Cyborg RAT 5

2016-02-04 Thread Joel Duncan
Thanks for clearing that up, Can confirm the patch works. udev rules were put in /usr/local/lib/udev by make command, moved to /usr/lib/udev then devadm hwdb --update. Looking forward to seeing this in upstream Fedora one day. Thanks, Joel On Wed, Feb 3, 2016 at 9:30 PM, Peter Hutterer wrote

[PATCH] xwayland: Clear pending cursor frame callbacks on pointer enter

2016-02-04 Thread Rui Matos
The last cursor frame we commited before the pointer left one of our surfaces might not have been shown. In that case we'll have a cursor surface frame callback pending which we need to clear so that we can continue submitting new cursor frames. Signed-off-by: Rui Matos Reviewed-by: Daniel Stone

RE: [PATCH weston] hmi-controller: remove duplicate commit_changes in random mode

2016-02-04 Thread Ucan, Emre (ADITG/SW1)
Hi Pekka, I am for removing the remaining bits of code which is wrongly assuming that a surface can be shown in multiple layers. Afterwards we have to redesign a big part of ivi_layout API to support this feauture. My ideas for the redesign so far: The most basic approach would be that an ivi

Re: [PATCH libinput] touchpad: while a key is held down, don't disable dwt

2016-02-04 Thread Hans de Goede
Hi, On 04-02-16 01:33, Peter Hutterer wrote: If a key enables dwt and is held down when the timeout expires, re-issue the timeout. There is a corner case where dwt may not work as expected: 1. key down and held down 2. dwt timer expires, dwt is re-issued 3. touch starts 4. key is released 5. dw

Re: [PATCH libinput] touchpad: if we have a serio keyboard, override any previous dwt pairing

2016-02-04 Thread Hans de Goede
Hi, On 04-02-16 08:23, Peter Hutterer wrote: If a USB keyboard like the YubiKey is found before the internal keyboard, it will be paired with the touchpad when it is seen. The internal keyboard is seen later but ignored because we already have a keyboard paired with the touchpad. This is obviou

Re: [PATCH] xwayland: Clear pending cursor frame callbacks on pointer enter

2016-02-04 Thread Daniel Stone
On 3 February 2016 at 15:14, Rui Matos wrote: > The last cursor frame we commited before the pointer left one of our > surfaces might not have been shown. In that case we'll have a cursor > surface frame callback pending which we need to clear so that we can > continue submitting new cursor frames

Using Soft Keys with Weston & Libinput

2016-02-04 Thread Ucan, Emre (ADITG/SW1)
Hi, We want to use soft keys with weston. The use-case is very similar to android that the touch panel is bigger than the display. The out of display touch events should be routed to the clients as key events. As far as I understood, It is not possible to realize this use-case in current westo

Re: Recursive dispatch (Re: [PATCH v2] server: Calculate remaining data size after a closure is processed)

2016-02-04 Thread Pekka Paalanen
On Wed, 3 Feb 2016 13:44:27 -0800 Bryce Harrington wrote: > On Wed, Feb 03, 2016 at 01:37:21PM +0200, Pekka Paalanen wrote: > > On Wed, 3 Feb 2016 10:52:07 + > > Auke Booij wrote: > > > On 3 February 2016 at 09:34, Jonas Ådahl wrote: > > > > On Wed, Feb 03, 2016 at 11:14:54AM +0200, Pek

[server-core] Add signal for creation of clients.

2016-02-04 Thread nicesj
Using display object, if a new client is created, emit a signal. In the server-side, we can get the destroy event of a client, But there is no way to get the client create event. Of course, we can get the client object from the global registry binding callbacks. But it

Re: (wayland sever/client) multiple binding to a global resources.

2016-02-04 Thread Pekka Paalanen
Hi On Thu, 4 Feb 2016 16:28:14 +0900 nic...@nicesj.com wrote: > Dear all, > > I'm still learning of the philosphy of the wayland world. > > while seeing and writing some codes, I got a question regarding > mutiple binding to a global objects. > > The client should register a event callback for

Re: [PATCH] xwayland: Clear pending cursor frame callbacks on pointer enter

2016-02-04 Thread Pekka Paalanen
On Wed, 3 Feb 2016 16:14:09 +0100 Rui Matos wrote: > The last cursor frame we commited before the pointer left one of our > surfaces might not have been shown. In that case we'll have a cursor > surface frame callback pending which we need to clear so that we can > continue submitting new cursor