Re: [RFC] VTs for multiple seats

2012-07-05 Thread Alex Deucher
On Wed, Jul 4, 2012 at 2:13 PM, David Herrmann wrote: > Hi guys > > (CC'ing systemd-ML as they proved to be very helpful and interested in this > ;)) > > I am currently working on kmscon and am planning on writing some > user-space VT logic similar to CONFIG_VT in the kernel. The idea is to > hav

[PATCH weston 17/17] compositor: rework touch focus

2012-07-05 Thread Pekka Paalanen
In the wl_seat conversion, struct wl_touch got fields for the focused surface and the client resource for the input device being focused. However, the conversion was incomplete: the old fields weston_seat::touch_focus* we still used by the event dispatching code, but the new code never set them. Th

[PATCH weston 16/17] android: add basic evdev input support

2012-07-05 Thread Pekka Paalanen
Make android_seat based on evdev_seat. Signed-off-by: Pekka Paalanen --- src/compositor-android.c | 84 +++-- 1 files changed, 80 insertions(+), 4 deletions(-) diff --git a/src/compositor-android.c b/src/compositor-android.c index 1657e9c..d19dcc7 10064

[PATCH weston 14/17] compositor-drm: log enter/leave VT

2012-07-05 Thread Pekka Paalanen
All input devices are re-added during enter VT, so these messages in the log will clarify what happened with input. Signed-off-by: Pekka Paalanen --- src/compositor-drm.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 8

[PATCH weston 15/17] compositor: log program launches

2012-07-05 Thread Pekka Paalanen
Signed-off-by: Pekka Paalanen --- src/compositor.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 677b5c8..b6b19a3 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -141,6 +141,8 @@ weston_client_launch(struct weston_compo

[PATCH weston 13/17] evdev: log input devices

2012-07-05 Thread Pekka Paalanen
Write information about found input devices into the log. Also fetch and record the device name. Print a note, when a device is removed via udev. Signed-off-by: Pekka Paalanen --- src/evdev.c | 26 ++ src/evdev.h |1 + src/udev-evdev.c |4 3 file

[PATCH weston 12/17] evdev: fix touch screen detection

2012-07-05 Thread Pekka Paalanen
The touch screen of Samsung Galaxy Nexus has, according to evtest: Input driver version is 1.0.1 Input device ID: bus 0x18 vendor 0x0 product 0x0 version 0x0 Input device name: "Melfas MMSxxx Touchscreen" Supported events: Event type 0 (EV_SYN) Event type 3 (EV_ABS) Event code 47 (ABS_MT_S

[PATCH weston 11/17] evdev: query position ranges for MT, too

2012-07-05 Thread Pekka Paalanen
For a true multi-touch input device, the code ended up using uninitialised fields of evdev_input_device::abs. Fix it by querying the corresponding MT ranges. Signed-off-by: Pekka Paalanen --- src/evdev.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/evdev.c

[PATCH weston 10/17] evdev: don't crash on missing keyboard

2012-07-05 Thread Pekka Paalanen
Weston's notify_keyboard_focus() assumes that a keyboard is present, if it is called. With evdev, there might not always be a keyboard. Also clean up the variable definition. I read this function through many times and finally had to grep where does 'all_keys' come from. Signed-off-by: Pekka Paal

[PATCH weston 09/17] evdev: move seat_id into uevdev

2012-07-05 Thread Pekka Paalanen
Only udev-evdev uses seat_id, so move it there, away from evdev.c. Signed-off-by: Pekka Paalanen --- src/evdev.c |5 + src/evdev.h |4 +--- src/udev-evdev.c |9 ++--- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 1fc

[PATCH weston 08/17] android: build evdev.c into android backend

2012-07-05 Thread Pekka Paalanen
Android backend needs mtdev now, and evdev-touchpad.c, too. Signed-off-by: Pekka Paalanen --- configure.ac |1 + src/Makefile.am | 16 +++- src/compositor-android.c |1 + 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/configure.ac b/con

[PATCH weston 07/17] evdev: open input devices as close-on-exec

2012-07-05 Thread Pekka Paalanen
Like we do for all other files, too. Signed-off-by: Pekka Paalanen --- src/udev-evdev.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/udev-evdev.c b/src/udev-evdev.c index a19db92..426cb47 100644 --- a/src/udev-evdev.c +++ b/src/udev-evdev.c @@ -63,7 +63,7 @@ devi

[PATCH weston 05/17] evdev: split udev members from struct evdev_seat

2012-07-05 Thread Pekka Paalanen
Make evdev.c completely independent of udev. Signed-off-by: Pekka Paalanen --- src/evdev.c | 20 - src/evdev.h | 13 +++ src/udev-evdev.c | 61 - 3 files changed, 59 insertions(+), 35 deletions(-) diff -

[PATCH weston 06/17] evdev: move weston_launcher_open() call site

2012-07-05 Thread Pekka Paalanen
Move the weston_launcher_open() call from evdev.c into udev-evdev.c. This makes evdev.c independent from launcher-util. While doing this, change the evdev_input_device_create() signature: - drop wl_display parameter as unused - pass opened device file descriptor, since evdev.c cannot open the de

[PATCH weston 04/17] uevdev: rename API functions

2012-07-05 Thread Pekka Paalanen
So we can have another API without udev beside this, for other backends. Signed-off-by: Pekka Paalanen --- src/compositor-drm.c | 14 +++--- src/compositor-openwfd.c |2 +- src/udev-evdev.c | 22 +++--- src/udev-evdev.h | 14 +++--- 4

[PATCH weston 03/17] evdev: merge evdev-private.h into evdev.h

2012-07-05 Thread Pekka Paalanen
evdev.h is now the "private" header, backends are supposed to use only udev-evdev.h. Signed-off-by: Pekka Paalanen --- src/Makefile.am |1 - src/evdev-private.h | 115 -- src/evdev-touchpad.c |2 +- src/evdev.c |1 - src

[PATCH weston 02/17] evdev: roughly split udev-related code out

2012-07-05 Thread Pekka Paalanen
Just do the major code move, and hack things up to compile still. Signed-off-by: Pekka Paalanen --- src/Makefile.am |2 + src/compositor-drm.c |2 +- src/compositor-openwfd.c |2 +- src/evdev.c | 224 + src/evdev.h

[PATCH weston 01/17] simple-touch: respond to ping protocol

2012-07-05 Thread Pekka Paalanen
Without this, it won't get any input anymore. Signed-off-by: Pekka Paalanen --- clients/simple-touch.c | 31 ++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git a/clients/simple-touch.c b/clients/simple-touch.c index 517a956..b438ffa 100644 --- a/clien

[PATCH wayland 2/2] server: fix wl_seat_set_{keyboard,touch}

2012-07-05 Thread Pekka Paalanen
Looks like an exclamation mark had decided to run and hide on another line. This makes wl_seat_set_keyboard and wl_seat_set_touch similar to wl_seat_set_pointer. Signed-off-by: Pekka Paalanen --- src/wayland-server.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sr

[PATCH wayland 1/2] server: add lose_touch_focus()

2012-07-05 Thread Pekka Paalanen
Just like wl_keyboard and wl_pointer, add a signal handler for losing touch focus. Signed-off-by: Pekka Paalanen --- src/wayland-server.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index d141682..031c243 100644 -

RFC/pull: evdev input for android, and touch fixes

2012-07-05 Thread Pekka Paalanen
Hi Kristian, I will be replying to this email with a patch series for Wayland and Weston, that will make evdev input devices work on Android. It splits udev and weston-launcher related code out from evdev.c, so I can reuse evdev.c on Android. That is the bulk of the work. There are various bug fi