[PATCH weston 1/2] input: fix input device map to output if it doesn't exist.

2014-04-11 Thread U. Artie Eoff
If an input device wants to map to an output that does not exist, then just map it to the first output. Also, if a device is mapped to an output that gets unplugged then it gets default mapped to the first output in the output destroy listener. However, the original output destroy listener needs

[PATCH weston 2/2] don't break in notify_output_create

2014-04-11 Thread U. Artie Eoff
If more than one input device maps to the new output, then we need to map all devices to that output... not just the first device. Signed-off-by: U. Artie Eoff --- src/libinput-seat.c | 1 - src/udev-seat.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/libinput-seat.c b/src/libinp

[PATCH weston] libinput-device: break after LIBINPUT_EVENT_TOUCH_UP

2014-04-11 Thread U. Artie Eoff
Need to break after handling LIBINPUT_EVENT_TOUCH_UP otherwise we fall into the default case and end up logging that the event is unknown and then return the wrong "handled" value. Signed-off-by: U. Artie Eoff --- src/libinput-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libi

[PATCH libinput] evdev: log configured device info

2014-04-11 Thread U. Artie Eoff
Bring back the device configure logging that was originally part of Weston's evdev. Signed-off-by: U. Artie Eoff --- src/evdev.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 72e4086..755a3a3 100644 --- a/src/evdev.c +++

[PATCH] libinput-seat: allow setting libinput log priority in weston

2014-04-11 Thread U. Artie Eoff
Look for WESTON_LIBINPUT_LOG_PRIORITY environment variable. If it exists then use it to set the libinput log priority. Otherwise, don't set the priority and get whatever libinput's default priority is. Signed-off-by: U. Artie Eoff --- src/libinput-seat.c | 7 +++ 1 file changed, 7 insertion

[PATCH weston] libinput-seat: redirect libinput log to weston log

2014-04-11 Thread U. Artie Eoff
Signed-off-by: U. Artie Eoff --- src/libinput-seat.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/libinput-seat.c b/src/libinput-seat.c index b6adc76..99612c4 100644 --- a/src/libinput-seat.c +++ b/src/libinput-seat.c @@ -251,6 +251,13 @@ udev_input_enable(struct udev_input *i

Re: [PATCH 1/2] Add more keyboards for the RDP compositor

2014-04-11 Thread Bill Spitzak
On 04/11/2014 01:10 PM, Hardening wrote: I have heard that in some cases windows layouts (which are also RDP ones) don't match exact the XKB ones :(. So the surprises can come when using mstsc against a linux host. Regards. I have had it fail between different versions of Linux with very s

Re: [PATCH 1/2] Add more keyboards for the RDP compositor

2014-04-11 Thread Hardening
Le 11/04/2014 21:46, Bill Spitzak a écrit : Rather than this ridiculousness, it would help a lot if there was a way to send already-decoded keysyms to clients and the input method. Keyboard mapping on remote X has always been a disaster because of this strange requirement that you emulate a fake

Re: [PATCH 1/2] Add more keyboards for the RDP compositor

2014-04-11 Thread Bill Spitzak
Rather than this ridiculousness, it would help a lot if there was a way to send already-decoded keysyms to clients and the input method. Keyboard mapping on remote X has always been a disaster because of this strange requirement that you emulate a fake piece of hardware, and it would be nice i

Re: [PATCH v2] tests: fix bad-buffer-test

2014-04-11 Thread Bill Spitzak
It would be a lot simpler to only change the sighandler when you want it to fail, and reverse the type of test to be a success test? On 04/11/2014 02:48 AM, Marek Chalupa wrote: bad-buffer-test is FAIL_TEST and every assert() (or even SIGSEGV signal) make it pass. It shouldn't be so for example

Re: [PATCH] gl-renderer: Fix a typo in the output_set_border description

2014-04-11 Thread Kristian Høgsberg
On Fri, Apr 11, 2014 at 03:42:59AM -0500, Jason Ekstrand wrote: > Signed-off-by: Jason Ekstrand Thanks, applied. Kristian > --- > src/gl-renderer.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/gl-renderer.h b/src/gl-renderer.h > index db42f6c..bdfe93e 10064

[PATCH weston] shell: Fix view repositioning logic for output move and destroy

2014-04-11 Thread Ander Conselvan de Oliveira
From: Ander Conselvan de Oliveira Previously, the repositioning logic would iterate the compositor's list of layers and move the views on those layers. However, that failed in two different ways: it didn't cover hidden workspaces and crashed when the display was locked. This patch changes the lo

[PATCH] Add a client for testing compositor damage handling

2014-04-11 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- Makefile.am | 12 + clients/simple-damage.c | 869 2 files changed, 881 insertions(+) create mode 100644 clients/simple-damage.c diff --git a/Makefile.am b/Makefile.am index c2df8b6..eb05a47 100644 -

[PATCH v2] tests: fix bad-buffer-test

2014-04-11 Thread Marek Chalupa
bad-buffer-test is FAIL_TEST and every assert() (or even SIGSEGV signal) make it pass. It shouldn't be so for example when assert() is invoked when a client couldn't connect to display. Make sure that only relevant asserts make the test pass and the other make it fail (by returning 0) --- tests/b

[RCF wayland] client: extend error handling

2014-04-11 Thread Marek Chalupa
When an error occures, than wl_display_get_error() do not provide any way of getting know if it was a local error or if it was an error event, respectively what object caused the error and what the error was. This patch introduces a new function wl_display_get_protocol_error() which will return er

[PATCH 1/2] Add more keyboards for the RDP compositor

2014-04-11 Thread Hardening
This patch complements the table that contains matches between RDP and xkb keyboard layouts. We now handle variants too. --- src/compositor-rdp.c | 132 ++- 1 file changed, 120 insertions(+), 12 deletions(-) diff --git a/src/compositor-rdp.c b/src/c

[PATCH 2/2] Use FreeRDP buildin functions to get scancodes

2014-04-11 Thread Hardening
This patch make use of the functions available in FreeRDP to retrieve the scancode to inject. --- src/compositor-rdp.c | 24 ++-- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c index 437954f..b749129 100644 --- a/src/c

[PATCH 0/2] Keyboard oriented patch

2014-04-11 Thread Hardening
The RDP compositor could became more popular with the fullscreen shell, so this serie brings enhancements for keyboard. The first patch adds the management of more RDP keyboard layouts. The second one simplifies scan code computation by using existing FreeRDP functions. Hardening (2): Add more

[PATCH] gl-renderer: Fix a typo in the output_set_border description

2014-04-11 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/gl-renderer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl-renderer.h b/src/gl-renderer.h index db42f6c..bdfe93e 100644 --- a/src/gl-renderer.h +++ b/src/gl-renderer.h @@ -75,8 +75,8 @@ struct gl_renderer_interface {

Re: [RFC libwayland] Track protocol object versions inside wl_proxy.

2014-04-11 Thread Jason Ekstrand
On Fri, Apr 11, 2014 at 2:03 AM, Pekka Paalanen wrote: > On Thu, 10 Apr 2014 09:42:55 -0500 > Jason Ekstrand wrote: > > > On Thu, Apr 10, 2014 at 6:37 AM, Pekka Paalanen > wrote: > > > > > Hi Jason, > > > > > > thanks for working on this, it does seem very useful, practically a > > > mandatory

Re: [PATCH] tests: fix bad-buffer-test

2014-04-11 Thread Marek Chalupa
On 10 April 2014 08:10, Pekka Paalanen wrote: > On Wed, 9 Apr 2014 16:44:53 +0200 > Marek Chalupa wrote: > > > bad-buffer-test is FAIL_TEST and every assert() (or even SIGSEGV signal) > > make it pass. It shouldn't be so for example when assert() is invoked > > when a client couldn't connect to

[PATCH] Check malloc result

2014-04-11 Thread Hardening
This patch checks malloc was successfull and release resources if it wasn't. --- src/screen-share.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/screen-share.c b/src/screen-share.c index 5de20be..d3e3f05 100644 --- a/src/screen-share.c +++ b/src/screen

Re: [RFC libwayland] Track protocol object versions inside wl_proxy.

2014-04-11 Thread Pekka Paalanen
On Thu, 10 Apr 2014 09:42:55 -0500 Jason Ekstrand wrote: > On Thu, Apr 10, 2014 at 6:37 AM, Pekka Paalanen wrote: > > > Hi Jason, > > > > thanks for working on this, it does seem very useful, practically a > > mandatory feature to support. > > > > Hi Pekka, > Yeah, I've been itching to knock t