[PATCH libinput] touchpad: don't allow taps in the top half of the palm exclusion zone.

2015-04-14 Thread Peter Hutterer
Touches in the exclusion zone are ignored for palm detection and don't move the cursor. Tapping however triggers before we know whether something is a palm or not, so we get erroneous button clickst. If a tap happens in the top half of the touchpad, within the palm exclusion zones, ignore it for t

Re: Synaptics LED support

2015-04-14 Thread Peter Hutterer
On Tue, Apr 14, 2015 at 02:50:47PM +0300, George Sedov wrote: > > what I'm more concerned about: if it's 4 years later - how many devices > > still have that functionality? I'm hesitant to add a feature that only works > > on laptops that have been discontinued a significant amount of time ago. > >

[PATCH libinput] touchpad: only pair internal trackpoint devices with internal touchpads

2015-04-14 Thread Peter Hutterer
Internal touchpads with trackpoints are either BUS_I8042 or BUS_I2C, but not BUS_USB/BUS_BLUETOOTH. Lenovo sells external keyboards with a trackpoint built-in, make sure we don't pair that trackpoint with the internal touchpad. And likewise, an internal trackpoint should not be paired with an exter

[PATCH libinput] touchpad: only pair internal trackpoint devices with internal touchpads

2015-04-14 Thread Peter Hutterer
Internal touchpads with trackpoints are either BUS_I8042 or BUS_I2C, but not BUS_USB. Lenovo sells external keyboards with a trackpoint built-in, make sure we don't pair that trackpoint with the internal touchpad. And likewise, the internal trackpoint should not be paired with e.g. a wacom touch de

[PATCH libinput 5/6] touchpad: enable middle button emulation on some touchpads

2015-04-14 Thread Peter Hutterer
If the touchpad has left/right physical buttons but no middle button, force middle button emulation - without a config option, it's always on. Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-buttons.c | 4 1 file changed, 4 insertions(+) diff --git a/src/evdev-mt-touchpad-buttons.c

[PATCH libinput 2/6] Add middle mouse button emulation config options

2015-04-14 Thread Peter Hutterer
Adds the following quartett of functions to enable/disable middle mouse button emulation on a device: libinput_device_config_middle_emulation_is_available() libinput_device_config_middle_emulation_set_enabled() libinput_device_config_middle_emulation_get_enabled() li

[PATCH libinput 0/6] Middle mouse button emulation

2015-04-14 Thread Peter Hutterer
we already had middle mouse button emulation for softbuttons, but not on physical buttons. This patchset adds support for physical buttons. Couple of general notes: * some devices, e.g. 2-button touchpads, have middle button emulation enabled, but not exposed as config option * if you have a m

[PATCH libinput 6/6] test: middle button emulation tests

2015-04-14 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- test/pointer.c | 339 + 1 file changed, 339 insertions(+) diff --git a/test/pointer.c b/test/pointer.c index a39cb2c..557fed7 100644 --- a/test/pointer.c +++ b/test/pointer.c @@ -866,6 +866,337 @@ START_TES

[PATCH libinput 1/6] evdev: add evdev_pointer_notify_physical_button

2015-04-14 Thread Peter Hutterer
No functional changes at this point, this merely splits up any physical buttons (i.e. that represent buttons that exist on that device) vs. other buttons that are emulated in some way or another. This is in preparation for the addition of middle button emulation. Signed-off-by: Peter Hutterer --

[PATCH libinput 4/6] evdev: enable middle button configuration on some devices

2015-04-14 Thread Peter Hutterer
Devices that have left and right buttons but no middle button get middle button emulation (without config). Devices that have a middle button too get a config option but default to off. Most mice have LMR set as buttons, regardless whether they have a middle button. Signed-off-by: Peter Hutterer

[PATCH libinput] tools: add a tool to list local devices and the default configurations

2015-04-14 Thread Peter Hutterer
xinput or an equivalent isn't available under wayland, but the majority of use-cases of "why doesn't my device work" or "why does feature X not work" should be covered by simply listing the local devices and their config options. Example output: Device: SynPS/2 Synaptics TouchPad Kernel:

Re: EFL/Wayland and xdg-shell

2015-04-14 Thread The Rasterman
On Mon, 13 Apr 2015 17:24:26 -0700 "Jasper St. Pierre" said: > On Mon, Apr 13, 2015 at 5:02 PM, Bryce Harrington > > > While window rotation was used more as an example of how built-in > > assumptions in the API could unintentionally constrain D-E's, than as a > > seriously needed feature, they

Re: EFL/Wayland and xdg-shell

2015-04-14 Thread The Rasterman
On Tue, 14 Apr 2015 01:31:56 +0100 Daniel Stone said: > Hi, > > On 14 April 2015 at 01:02, Bryce Harrington wrote: > > For purposes of discussion, an example might be rotated windows. The > > set geometry api takes x, y, height, and width. How would you specify > > rotation angle? > > The wi

Re: xdg-shell and always centered surfaces

2015-04-14 Thread Bill Spitzak
Lots of applications take a long time before they can generate the initial window image, so they show a "splash screen" so the user knows the application started. They are also often required to display legally-required information (branding, copyright, etc) without cluttering the main window w

Re: [PATCH weston] input: Don't use uninitialized variables in default_grab_pointer_focus()

2015-04-14 Thread Bill Spitzak
On 04/12/2015 11:51 PM, Pekka Paalanen wrote: I know! We use an arbitrary leave/enter pair to signal pointer location changes to clients when there is no physical input. That is, the pointer device doesn't move, but the surface or view moves. We cannot fake a wl_pointer.motion event, because it'

[PATCH weston] desktop-shell: destroy surfaces in an idle handler after fade out

2015-04-14 Thread Derek Foreman
It's possible for more than one animation to be taking place on a view at the same time. If one of those animations is the shell's fade out for dying surfaces, its completion handler will trigger the surface destroy signal, causing other animations on the animation list to remove themselves. Sinc

[PATCH weston] Don't manipulate lists while tranversing the list (was: remove all running animations...)

2015-04-14 Thread Bryce Harrington
On Tue, Apr 14, 2015 at 09:41:13AM +0300, Pekka Paalanen wrote: > On Mon, 13 Apr 2015 22:47:00 -0500 > Derek Foreman wrote: > > > On 13/04/15 07:15 AM, Pekka Paalanen wrote: > > > Maybe the closing animation ending should just schedule an idle task to > > > destroy the surface? > > > > I don't t

Re: EFL/Wayland and xdg-shell

2015-04-14 Thread Derek Foreman
On 13/04/15 10:19 PM, Jasper St. Pierre wrote: > On Mon, Apr 13, 2015 at 7:59 PM, Derek Foreman wrote: > > ... snip ... > >> That all makes sense - set_window_geometry() was a bit of a red herring >> here. >> >> Some EFL developers want the application to have a way to know its >> rotation so it

Re: EFL/Wayland and xdg-shell

2015-04-14 Thread Derek Foreman
On 14/04/15 01:38 AM, Giulio Camuffo wrote: > 2015-04-14 6:33 GMT+03:00 Derek Foreman : >> On 13/04/15 07:31 PM, Daniel Stone wrote: >>> Hi, >>> >>> On 14 April 2015 at 01:02, Bryce Harrington wrote: For purposes of discussion, an example might be rotated windows. The set geometry api t

Re: EFL/Wayland and xdg-shell

2015-04-14 Thread Jan Arne Petersen
Hi, On 14.04.2015 05:19, Jasper St. Pierre wrote: The solution GNOME takes, which is admittedly maybe too unrealistic, is that IBus is our input method framework, and thus our compositor has somewhat tight integration with IBus. I don't think input methods need to be part of the core Wayland pro

Re: Synaptics LED support

2015-04-14 Thread George Sedov
> what I'm more concerned about: if it's 4 years later - how many devices > still have that functionality? I'm hesitant to add a feature that only works > on laptops that have been discontinued a significant amount of time ago. > > Cheers, >Peter Yes, I think there still are the devices with

Re: Touchpad acceleration

2015-04-14 Thread Hans de Goede
Hi, On 11-04-15 11:24, Stefanos A. wrote: No, this is a Samsung RC520. After switching between Xorg and Wayland a few times, I'm fairly sure this is caused by the different acceleration curves. Xorg appears to ramp up to 1.0+ quicker than libinput, making it feel more responsive. Libinput rema

Re: [PATCH] Mirroing mode

2015-04-14 Thread Leslie Zhai
Hi Pekka, Thanks for your reply ;-) It is JUST able to work, and thanks Xiong Zhang`s patch for output gl render in mirroring (clone) mode http://lists.freedesktop.org/archives/wayland-devel/2013-September/011138.html I just add primary key to the output section of weston.ini, and set the S

Re: How to match versions of wayland/weston/freerdp?

2015-04-14 Thread Heikki Sarkanen
Hello, I have also tried to use FreeRDP with Weston and Yocto toolchain on iMX6 board. I used Yocto from master branch. My versions for Weston were 1.6 and 1.7 and for FreeRDP 2604ff20bd and 3f371b22ad. With 2604ff20bd from stable-1.1 branch I got a lot of CMake issues and gave up. Most promising

Re: [PATCH] Mirroing mode

2015-04-14 Thread Pekka Paalanen
On Tue, 14 Apr 2015 12:23:03 +0800 Leslie Zhai wrote: > Hi Pekka, > > Thanks for your reply! > > It is not easy to use Google "thanks to" G.F.W. blocked it ;-( > Could you paste the URL links for me please? thanks a lot! About mirror/clone mode: http://lists.freedesktop.org/archives/wayland-de