Re: [PATCH wayland] scanner: Fail on empty enumerations

2015-03-19 Thread Derek Foreman
This looks good to me. Reviewed-By: Derek Foreman der...@osg.samsung.com On 19/03/15 03:58 AM, Jonas Ådahl wrote: Without this patch, the scanner would generate invalid C which wouldn't compile anyway, so lets be nice and fail earlier and point out where the error is. Signed-off-by: Jonas

[PATCH weston] desktop-shell: don't allow negative values in drag resize

2015-03-18 Thread Derek Foreman
Now clamping width and height to a minimum of 1, 1 when drag resizing. Signed-off-by: Derek Foreman der...@osg.samsung.com --- desktop-shell/shell.c | 4 1 file changed, 4 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 826692f..aca91eb 100644 --- a/desktop

Re: [PATCH weston v2 2/2] compositor: add repaint delay timer

2015-03-18 Thread Derek Foreman
normal circumstances maybe we should log (perhaps just the first time) the 1000 case, as it seems to indicate something is rather wrong? This all looks pretty good to me though, Reviewed-By: Derek Foreman der...@osg.samsung.com + output_repaint_timer_handler(output); + else

Re: [PATCH weston v2 2/6] compositors: Wrap clock_gettime() usage

2015-03-18 Thread Derek Foreman
On 18/03/15 03:14 AM, Pekka Paalanen wrote: On Mon, 22 Dec 2014 16:09:15 -0600 Derek Foreman der...@osg.samsung.com wrote: In preparation for a future patch which allows test clients to control the presentation clock, we wrap any clock_gettime() of the presentation clock

Re: [PATCH weston] input: Make setting the same pointer cursor surface again a no-op

2015-03-18 Thread Derek Foreman
On 18/03/15 02:16 AM, Jonas Ådahl wrote: If the client calls wl_pointer.set_cursor with the same surface that is already set, don't do anything as no state was changed. This avoids an issue where a client setting the same cursor surface multiple times would receive wl_surface.leave/enter on

[PATCH weston 5/5] compositor-fbdev: fix output transformations

2015-03-17 Thread Derek Foreman
The pixman-renderer is already performing transformations when compositing into the shadow buffer, we just need to get the damage co-ordinates right when copying from shadow to front. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/compositor-fbdev.c | 110

[PATCH weston 3/5] compositor-rpi: give the output a name

2015-03-17 Thread Derek Foreman
Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/compositor-rpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compositor-rpi.c b/src/compositor-rpi.c index 2d72686..bceb280 100644 --- a/src/compositor-rpi.c +++ b/src/compositor-rpi.c @@ -344,6 +344,7 @@ rpi_output_create

[PATCH weston 0/5] fix fbdev transforms

2015-03-17 Thread Derek Foreman
on a different seat and that causes a crash at startup. Derek Foreman (5): compositor-fbdev: give the output a name input: don't assume outputs have names compositor-rpi: give the output a name compositor-fbdev: allow configuring transform in the ini file compositor-fbdev: fix output

[PATCH weston 1/5] compositor-fbdev: give the output a name

2015-03-17 Thread Derek Foreman
If you have devices configured in seats with udev then the output names are tested with string compare. This fixes a potential crash on startup and device insertion. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/compositor-fbdev.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: Fbdev rotation broken

2015-03-17 Thread Derek Foreman
On 17/03/15 07:34 AM, Pekka Paalanen wrote: On Tue, 17 Mar 2015 13:02:34 +0100 Thilo Cestonaro th...@cestona.ro wrote: Hey! Just curious, why didn't you get the fbdev backend to work? Was it the color format thing? No, I got the color format to work, but I need to rotate the screen, and

[PATCH weston 4/5] compositor-fbdev: allow configuring transform in the ini file

2015-03-17 Thread Derek Foreman
Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/compositor-fbdev.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/compositor-fbdev.c b/src/compositor-fbdev.c index ae526e5..c08f170 100644 --- a/src/compositor-fbdev.c +++ b/src/compositor-fbdev.c

[PATCH weston 2/5] input: don't assume outputs have names

2015-03-17 Thread Derek Foreman
If an output is unnamed and devices are in seats, the strcmp will crash. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/libinput-seat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libinput-seat.c b/src/libinput-seat.c index ef2d804..c0a87ea 100644

Re: [PATCH weston v2 00/16] Fix pixman-renderer cropping

2015-03-10 Thread Derek Foreman
=pixmancomplex-3 Thanks, pq Derek Foreman (1): compositor: use weston_matrix_transform for weston_output_transform_coordinate S-O-B me. Jason Ekstrand (4): Use pixel coordinates for weston_output.matrix zoom: Use pixels instead of GL coordinates compositor: Add surface-to-buffer

Re: [PATCH weston 6/8] pixman-renderer: move code to draw_view_translated()

2015-03-09 Thread Derek Foreman
On 09/03/15 05:52 AM, Pekka Paalanen wrote: On Fri, 06 Mar 2015 13:46:26 -0600 Derek Foreman der...@osg.samsung.com wrote: On 06/03/15 05:04 AM, Pekka Paalanen wrote: From: Pekka Paalanen pekka.paala...@collabora.co.uk Move code from draw_view() into a new function draw_view_translated

Re: [PATCH weston 1/8] compositor: add weston_surface_to_buffer_region()

2015-03-06 Thread Derek Foreman
On 06/03/15 05:03 AM, Pekka Paalanen wrote: From: Pekka Paalanen pekka.paala...@collabora.co.uk This will be used by pixman-renderer. Signed-off-by: Pekka Paalanen pekka.paala...@collabora.co.uk --- src/compositor.c | 36 src/compositor.h | 5 +

Re: [PATCH weston 2/8] pixman-renderer: put transformation computation into function

2015-03-06 Thread Derek Foreman
On 06/03/15 05:03 AM, Pekka Paalanen wrote: From: Pekka Paalanen pekka.paala...@collabora.co.uk Move the long piece of code computing the end-to-end transformation from repaint_region() into a new function pixman_renderer_compute_transform(). The code itself it not modified. Nice

Re: [PATCH weston 5/8] pixman-renderer: change repaint_region() arguments

2015-03-06 Thread Derek Foreman
On 06/03/15 05:04 AM, Pekka Paalanen wrote: From: Pekka Paalanen pekka.paala...@collabora.co.uk Change the region argument types in repaint_region(), moving the final_region computation to the caller. The caller is in a better position deciding if source_clip is needed or if it can be

Re: [PATCH weston 7/8] pixman-renderer: implement source clipping

2015-03-06 Thread Derek Foreman
On 06/03/15 05:04 AM, Pekka Paalanen wrote: From: Pekka Paalanen pekka.paala...@collabora.co.uk Implement a way to do composition clipping with a region32 given in source image space. Pixman does not directly support this kind of operation at all. If you pixman_image_set_clip_region32()

Re: [PATCH weston 0/8] Fix pixman-renderer cropping

2015-03-06 Thread Derek Foreman
. This is a follow-up to http://lists.freedesktop.org/archives/wayland-devel/2015-March/020354.html Really good stuff here. Replied to some individual patches with suggestions. Reviewed-By: Derek Foreman der...@osg.samsung.com For all except 2, 5, 6. Would like to see 6 split into refactor

Re: [PATCH weston] window: Fix crash in input_set_pointer_image when cursor is special

2015-03-05 Thread Derek Foreman
On 05/03/15 02:15 AM, Pekka Paalanen wrote: On Wed, 4 Mar 2015 16:26:25 -0600 Derek Foreman der...@osg.samsung.com wrote: Certain circumstances may lead to the force clause in input_set_pointer_image() being reached when the current cursor is blank or unset. These are special cursors

[PATCH v2 wayland] cursor: add wl_cursor_frame_and_duration

2015-03-04 Thread Derek Foreman
It's useful to know how long the current cursor frame should be displayed so we can wait that long to change it. Signed-off-by: Derek Foreman der...@osg.samsung.com --- differences from v1: Add comment about 0 durations document return of 0 duration as unchanging image make sure duration

Re: [PATCH wayland] cursor: add wl_cursor_frame_and_duration

2015-03-04 Thread Derek Foreman
On 04/03/15 01:50 AM, Pekka Paalanen wrote: On Tue, 3 Mar 2015 15:24:13 -0600 Derek Foreman der...@osg.samsung.com wrote: It's useful to know how long the current cursor frame should be displayed so we can wait that long to change it. Signed-off-by: Derek Foreman der...@osg.samsung.com

[PATCH wayland] cursor: add wl_cursor_frame_and_duration

2015-03-04 Thread Derek Foreman
It's useful to know how long the current cursor frame should be displayed so we can wait that long to change it. Signed-off-by: Derek Foreman der...@osg.samsung.com --- differences from v1: Add comment about 0 durations document return of 0 duration as unchanging image make sure duration

[PATCH weston] window: Fix crash in input_set_pointer_image when cursor is special

2015-03-04 Thread Derek Foreman
in its own function and calls it from both places that need it. Previously only the frame callback handler did this correctly. Signed-off-by: Derek Foreman der...@osg.samsung.com --- clients/window.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git

Re: [PATCH weston 2/4] compositor: add weston_view_set_mask() API and state

2015-03-04 Thread Derek Foreman
On 04/03/15 03:52 AM, Pekka Paalanen wrote: On Tue, 03 Mar 2015 16:50:47 -0600 Derek Foreman der...@osg.samsung.com wrote: Minor pedantry below. On 02/03/15 09:15 AM, Pekka Paalanen wrote: Are you happy with the explanations? I fixed all the typos, and will push if you are. :-) Sure

[PATCH weston] window: use wl_cursor_frame_and_duration() for mouse cursor updates

2015-03-03 Thread Derek Foreman
Instead of a frame callback we can now use a timerfd and the time left in the current cursor frame. This saves us from setting the cursor at 60hz even when no updates are required. Signed-off-by: Derek Foreman der...@osg.samsung.com --- NOTE: this requires a wayland change I just posted

[PATCH wayland] cursor: add wl_cursor_frame_and_duration

2015-03-03 Thread Derek Foreman
It's useful to know how long the current cursor frame should be displayed so we can wait that long to change it. Signed-off-by: Derek Foreman der...@osg.samsung.com --- In a follow up weston patch I use this to let toytoolkit set the cursor with a timerfd instead of using a frame callback

Re: [PATCH weston 4/4] gl-renderer: implement view scissor

2015-03-03 Thread Derek Foreman
Some minor pedantry below as well, but otherwise the whole series is Reviewed-By: Derek Foreman der...@osg.samsung.com On 02/03/15 09:16 AM, Pekka Paalanen wrote: From: Pekka Paalanen pekka.paala...@collabora.co.uk Implement support for weston_view_set_mask(). Signed-off-by: Pekka

Re: [PATCH weston 2/4] compositor: add weston_view_set_mask() API and state

2015-03-03 Thread Derek Foreman
Minor pedantry below. On 02/03/15 09:15 AM, Pekka Paalanen wrote: From: Pekka Paalanen pekka.paala...@collabora.co.uk Add API for setting a clip ('scissor' in the code) rectangle per view, in surface coordinates. Ivi-shell requires this feature to be able to implement the IVI Layer Manager

Re: [PATCH weston 1/4] gl-renderer: use eglGetPlatformDisplayEXT to get an EGLDisplay

2015-02-25 Thread Derek Foreman
Series looks good to me now. Reviewed-by: Derek Foreman der...@osg.samsung.com On 25/02/15 06:42 AM, Jonny Lamb wrote: --- src/compositor-drm.c | 13 +- src/compositor-fbdev.c | 2 +- src/compositor-wayland.c | 20 +++-- src/compositor-x11.c | 11 - src/gl

Re: [PATCH wayland] server: add helper functions for wl_global

2015-02-23 Thread Derek Foreman
On 23/02/15 10:02 AM, Jonny Lamb wrote: The intention here is to be able to find an existing wl_global using some search parameters and then get some information about it. I'm not sure I see a need for this, but if there is need there should also be documentation. :) ---

Re: [PATCH weston 1/2] configure.ac: Don't look for Xwayland in the weston install destination

2015-02-10 Thread Derek Foreman
On 10/02/15 09:22 AM, sardemff7+wayl...@sardemff7.net wrote: On 2015-02-10 03:15, Bryce Harrington wrote: Turns out the issue I've run into is that the --with-xserver-path setting doesn't get passed down into distcheck, which calls configure like this: $(am__cd) $(distdir)/_build

[PATCH weston 2/2] build: Enable xwayland-test during distcheck

2015-02-09 Thread Derek Foreman
The replacement xwayland-test should succeed, so we should run it from distcheck again. Signed-off-by: Derek Foreman der...@osg.samsung.com --- Makefile.am | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 589b47b..1864b70 100644

[PATCH weston 0/2] Make distcheck run xwayland-test and pass

2015-02-09 Thread Derek Foreman
and presence, as currently this requires the releaser to have Xwayland installed. Derek Foreman (2): configure.ac: Don't look for Xwayland in the weston install destination build: Enable xwayland-test during distcheck Makefile.am | 3 +-- configure.ac | 2 +- 2 files changed, 2 insertions(+), 3

[PATCH weston 1/2] configure.ac: Don't look for Xwayland in the weston install destination

2015-02-09 Thread Derek Foreman
Xwayland isn't part of this distribution so looking for Xwayland in weston's install dir will cause distcheck to fail. Let's set the default to /usr/bin where it's likely to live. It can still be overriden during configure exactly as before. Signed-off-by: Derek Foreman der...@osg.samsung.com

Re: [PATCH wayland v5] tests: Fix FAIL in sanity-test (*timeout*) when Yama LSM enabled

2015-02-06 Thread Derek Foreman
. It'll work fine the way it is now, or the way it was. Either way you choose: Reviewed-by: Derek Foreman der...@osg.samsung.com Signed-off-by: Bryce Harrington br...@osg.samsung.com --- tests/test-runner.c | 62 +++-- 1 file changed, 51

Re: [PATCH weston] Update .gitignore

2015-02-05 Thread Derek Foreman
Looks fine to me. Reviewed-by: Derek Foreman der...@osg.samsung.com On 05/02/15 09:31 AM, Daniel Stone wrote: Add autotools remnants, as well as more comprehensive vim swapfiles, Sublime Text configuration, and git format-patch output. Signed-off-by: Daniel Stone dani...@collabora.com

[PATCH weston] xwm: remove the create surface listener in weston_wm_destroy

2015-02-03 Thread Derek Foreman
Failing to remove this can result in a crash when the signal is sent after the window manager is destroyed. Signed-off-by: Derek Foreman der...@osg.samsung.com --- xwayland/window-manager.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c

Re: [PATCH v2 weston] input: Don't test keyboard/pointer/touch pointers

2015-02-02 Thread Derek Foreman
On 02/02/15 03:40 PM, Bill Spitzak wrote: On 02/02/2015 01:24 PM, Derek Foreman wrote: force_kill_binding() appears to have deleted the setting of the focus_surface variable. I don't see it... I think I just moved it to the top of the function? I think you are right. It is assuming

Re: [PATCH v2 weston] input: Don't test keyboard/pointer/touch pointers

2015-02-02 Thread Derek Foreman
Thanks for looking at this rather cumbersome patch! :) On 02/02/15 01:40 PM, Bill Spitzak wrote: Is there a reason it does not just clear the pointer when keyboard_device_count is changed to zero? That would seem like a smaller patch. Pulled Jonas Ådahl in on the CC for that question... I

Re: [PATCH v2 weston] input: Don't test keyboard/pointer/touch pointers

2015-02-02 Thread Derek Foreman
On 02/02/15 04:26 PM, Hardening wrote: Le 02/02/2015 22:24, Derek Foreman a écrit : Thanks for looking at this rather cumbersome patch! :) On 02/02/15 01:40 PM, Bill Spitzak wrote: Is there a reason it does not just clear the pointer when keyboard_device_count is changed to zero? That would

[PATCH v3 weston] input: Don't test keyboard/pointer/touch pointers

2015-02-02 Thread Derek Foreman
renames the touch/keyboard/pointer pointers and adds helper functions to get them that hide this complexity and return NULL when *_device_count is 0. Signed-off-by: Derek Foreman der...@osg.samsung.com --- Fixed a couple of bugs, responded to some of Bill's concerns desktop-shell/exposay.c

[PATCH weston] screenshooter: remove useless cast

2015-02-02 Thread Derek Foreman
Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/screenshooter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/screenshooter.c b/src/screenshooter.c index c98e2f9..4e32db5 100644 --- a/src/screenshooter.c +++ b/src/screenshooter.c @@ -558,8 +558,7

[PATCH v2 weston] input: Don't test keyboard/pointer/touch pointers

2015-02-02 Thread Derek Foreman
renames the touch/keyboard/pointer pointers and adds helper functions to get them that hide this complexity and return NULL when *_device_count is 0. Signed-off-by: Derek Foreman der...@osg.samsung.com --- This time around we rename the pointers and make everyone use the helper functions (except

[PATCH weston] desktop-shell: Remove unnecessary type casts

2015-01-30 Thread Derek Foreman
Remove a few instances of casting weston_seat to weston_seat. Signed-off-by: Derek Foreman der...@osg.samsung.com --- desktop-shell/shell.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index f6d9c79..0793352

[PATCH weston] input: Don't test keyboard/pointer/touch pointers

2015-01-29 Thread Derek Foreman
. There are some cases (new device setup) where the pointers still need to be tested directly. Signed-off-by: Derek Foreman der...@osg.samsung.com --- desktop-shell/shell.c | 45 - fullscreen-shell/fullscreen-shell.c | 4 src/compositor.c

[PATCH weston] xwayland-test: Replace the xwayland-test

2015-01-29 Thread Derek Foreman
The old xwayland-test hasn't worked in a while... This new test checks that the wayland specific WL_SURFACE_ID atom exists, checks that the window manager name is Weston WM and then maps a window and waits for an exposure event. Signed-off-by: Derek Foreman der...@osg.samsung.com

[PATCH weston v2 2/2] text-input: Replace model with input

2015-01-28 Thread Derek Foreman
commit 78d00e45cc renamed text_model to text_input This cleans up remaining uses of the word model Signed-off-by: Derek Foreman der...@osg.samsung.com --- Same as seen previously, just rebased. protocol/input-method.xml | 18 ++-- src/text-backend.c| 70

[PATCH weston v2 1/2] text: Fix text-input for multi-seat

2015-01-28 Thread Derek Foreman
input_method's context pointer to NULL to prevent a dangling pointer. Signed-off-by: Derek Foreman der...@osg.samsung.com --- Was asked to resend this with a better commit log. :) I think the third item could be broken into a separate (2 line) patch, but I don't think the dangling pointer is a problem

[PATCH weston] tests: Rename wayland-test to weston-test

2015-01-28 Thread Derek Foreman
of testing. Signed-off-by: Derek Foreman der...@osg.samsung.com --- Makefile.am | 16 - protocol/wayland-test.xml | 62 - protocol/weston-test.xml | 73 +++ tests/button-test.c

[PATCH wayland v2] event-loop: Dispatch idle callbacks twice

2015-01-28 Thread Derek Foreman
callback being delayed indefinitely while waiting for epoll_wait() to complete. Callbacks are removed from the list when they're run, so the second dispatch won't result in any extra calls. Signed-off-by: Derek Foreman der...@osg.samsung.com --- Amusingly, the problem Bill points out is exactly

Re: [PATCH wayland v2] event-loop: Dispatch idle callbacks twice

2015-01-28 Thread Derek Foreman
On 28/01/15 09:39 AM, Giulio Camuffo wrote: 2015-01-28 17:25 GMT+02:00 Derek Foreman der...@osg.samsung.com: To fix a shutdown crash in weston's x11 compositor I want to move the weston X window close to an idle handler. Since idle handlers are processed at the start of an event loop

[PATCH wayland] event-loop: Process idle callbacks after the epoll fds

2015-01-27 Thread Derek Foreman
the dispatcher blocks on epoll forever (since all input events that will ever occur have been consumed). Moving the idle handler callbacks to after the epoll_wait allows this to all be completed within a single dispatch, and stops the lock-up from occurring. Signed-off-by: Derek Foreman der...@osg.samsung.com

[PATCH weston] compositor-x11: Move the x11 window close to an idle handler

2015-01-27 Thread Derek Foreman
. NOTE: this requires a patch for wayland that moves the idle handler dispatch to after epoll_wait in the event loop processing. Closes bug: https://bugs.freedesktop.org/show_bug.cgi?id=81314 Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/compositor-x11.c | 32

Re: [PATCH weston 2/3] clients: Require EGL_MIN_SWAP_INTERVAL to be 0 for subsurfaces

2015-01-27 Thread Derek Foreman
On 26/01/15 08:24 PM, Jonas Ådahl wrote: On Mon, Jan 26, 2015 at 02:27:51PM -0600, Derek Foreman wrote: On 26/01/15 04:19 AM, Jonas Ådahl wrote: Warn and fail when trying to create sub surfaces when swap interval 0 is not supported by the EGL platform. Signed-off-by: Jonas Ådahl jad

Re: [PATCH weston 2/3] clients: Require EGL_MIN_SWAP_INTERVAL to be 0 for subsurfaces

2015-01-26 Thread Derek Foreman
On 26/01/15 04:19 AM, Jonas Ådahl wrote: Warn and fail when trying to create sub surfaces when swap interval 0 is not supported by the EGL platform. Signed-off-by: Jonas Ådahl jad...@gmail.com --- clients/nested.c | 1 + clients/subsurfaces.c | 2 ++ clients/window.c | 19

[PATCH v2 wayland] cosmetic: Move the deprecated functions back to the end of the file

2015-01-24 Thread Derek Foreman
There are functions below the Deprecated functions below comment that are not deprecated. Move the deprecated functions back down, and add a comment at the end of the file to try to keep this from happening again. Signed-off-by: Derek Foreman der...@osg.samsung.com --- Rebased on master src

Re: [PATCH weston] tests: Skip buffer count test if wayland EGL extension isn't present

2015-01-23 Thread Derek Foreman
On 23/01/15 11:16 AM, Bryce Harrington wrote: On Tue, Jan 20, 2015 at 01:16:26PM -0600, Derek Foreman wrote: This also skips the test when running on the headless backend. Signed-off-by: Derek Foreman der...@osg.samsung.com Reviewed-by: Bryce Harrington br...@osg.samsung.com (But waiting

[PATCH v2 weston] tests: Skip buffer count test if wl_drm isn't present

2015-01-23 Thread Derek Foreman
This skips the test when running on the headless backend. Signed-off-by: Derek Foreman der...@osg.samsung.com --- tests/buffer-count-test.c | 3 +++ tests/weston-test-client-helper.c | 2 ++ tests/weston-test-client-helper.h | 2 ++ 3 files changed, 7 insertions(+) diff --git a/tests

Re: [RFC libinput v2] Add an API for touchpad gesture events

2015-01-23 Thread Derek Foreman
On 23/01/15 07:46 AM, Hans de Goede wrote: For touchscreens we always send raw touch events to the compositor, and the compositor or application toolkits do gesture recognition. This makes sense because on a touchscreen which window / widget the touches are over is important context to know to

Re: [PATCH weston] tests: Skip buffer count test if wayland EGL extension isn't present

2015-01-22 Thread Derek Foreman
On 22/01/15 03:48 PM, Daniel Stone wrote: Hi, On Tuesday, January 20, 2015, Derek Foreman der...@osg.samsung.com mailto:der...@osg.samsung.com wrote: This also skips the test when running on the headless backend. I like this part! + if (strstr(extensions

[PATCH wayland] cosmetic: Move the deprecated functions back to the end of the file

2015-01-22 Thread Derek Foreman
There are functions below the Deprecated functions below comment that are not deprecated. Move the deprecated functions back down, and add a comment at the end of the file to try to keep this from happening again. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/wayland-server.c

Re: [PATCH 3/8] doc: Remove wl_map from documentation

2015-01-22 Thread Derek Foreman
better to me now. :) Reviewed-by: Derek Foreman der...@osg.samsung.com On 01/21/2015 07:28 AM, Derek Foreman wrote: On 02/01/15 08:29 PM, Bill Spitzak wrote: This object is only in wayland-private.h so it's methods should not be in the documentation. --- src/wayland-util.c |4 1

Re: [PATCH 3/4] config-parser: Enable updating an already-loaded config

2015-01-21 Thread Derek Foreman
On 20/01/15 05:30 PM, Bryce Harrington wrote: From: Bryce Harrington br...@osg.samsung.com Adds weston_config_update(), which parses a condensed string of comma-delimited key/value pairs and adds or changes the corresponding parameters in the weston_config structure. Signed-off-by: Bryce

Re: [PATCH 1/4] config-parser: Document config_section_get_entry()

2015-01-21 Thread Derek Foreman
*section, Otherwise, looks good to me. Reviewed-by: Derek Foreman der...@osg.samsung.com ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [PATCH 2/4] config-parser: Allow server-side modification of loaded configs

2015-01-21 Thread Derek Foreman
Looks good to me. Reviewed-by: Derek Foreman der...@osg.samsung.com On 20/01/15 05:30 PM, Bryce Harrington wrote: From: Bryce Harrington br...@osg.samsung.com Adds a setter, weston_config_section_set(), for changing key values in the loaded copy of the weston.ini configuration

Re: [PATCH 4/8] doc: made functions taking wl_event_queue arg belong to wl_event_queue

2015-01-21 Thread Derek Foreman
This looks good to me, though I suppose arguments could be made either way. I think it makes more sense this way. Reviewed-by: Derek Foreman der...@osg.samsung.com On 02/01/15 08:29 PM, Bill Spitzak wrote: The fact that these functions take both a display and queue argument is I think

Re: [PATCH 7/8] doc: Add object types and links to arguments int protocol documentation

2015-01-21 Thread Derek Foreman
This seems like a big win to me. Reviewed-by: Derek Foreman der...@osg.samsung.com On 02/01/15 08:29 PM, Bill Spitzak wrote: This makes it a lot easier to figure out what is going on! --- doc/publican/protocol-to-docbook.xsl | 35 ++ 1 file changed, 35

Re: [PATCH 8/8] doc: remove redundant subtitles

2015-01-21 Thread Derek Foreman
to look at. Reviewed-by: Derek Foreman der...@osg.samsung.com --- doc/publican/protocol-to-docbook.xsl | 38 ++ 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/doc/publican/protocol-to-docbook.xsl b/doc/publican/protocol-to-docbook.xsl index

Re: [PATCH 3/8] doc: Remove wl_map from documentation

2015-01-21 Thread Derek Foreman
On 02/01/15 08:29 PM, Bill Spitzak wrote: This object is only in wayland-private.h so it's methods should not be in the documentation. --- src/wayland-util.c |4 1 file changed, 4 insertions(+) diff --git a/src/wayland-util.c b/src/wayland-util.c index b099882..db51ebb 100644

Re: [PATCH 6/8] doc: compress the lists in the protocol docs some

2015-01-21 Thread Derek Foreman
): name uint unique name for the object I think it might be better with a - or with summary in (). However, I think that's a fairly minor complaint. enums are much nicer than before, imho. Reviewed-by: Derek Foreman der...@osg.samsung.com ___ wayland

Re: [PATCH 1/8] doc: add missing \memberof to wl_display_get_protocol_error

2015-01-21 Thread Derek Foreman
Looks good to me. Reviewed-by: Derek Foreman der...@osg.samsung.com On 02/01/15 08:29 PM, Bill Spitzak wrote: --- src/wayland-client.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/wayland-client.c b/src/wayland-client.c index 9e8bdfe..d1d21ca 100644

Re: [PATCH 2/8] doc: Remove deprecated functions from documentation

2015-01-21 Thread Derek Foreman
Hmm, if I understand what this is doing... it disables doxygen parsing for a block that has no doxygen comments in it anyway. In the future if we deprecate stuff that actually has doxygen comments, I suppose this will result in nicer documentation, and I see no harm in it... Reviewed-by: Derek

Re: [PATCH weston 6/6] zoom: Change how we select a zoom location

2015-01-20 Thread Derek Foreman
nice zoom semantics for multi-seat later) On 01/09/2015 10:45 AM, Derek Foreman wrote: Any time the zoom is updated the best zoom target will be calculated with the following priority: 1) The current pointer location. 2) The last known location of the pointer that initiated the zoom. 3

Re: [PATCH weston] zoom: Check the value of level before using it.

2015-01-20 Thread Derek Foreman
Nice catch. Zooming with mod+scrollwheel will divide by zero a few times at the start of zoom without this patch. Reviewed-by: Derek Foreman der...@osg.samsung.com On 17/01/15 01:31 PM, Carlos Olmedo Escobar wrote: Check the value of level before dividing 1 by it. Signed-off-by: Carlos

Re: [PATCH weston v2 1/2] releasing: Typo

2015-01-20 Thread Derek Foreman
I think we can call this obviously correct. Reviewed-by: Derek Foreman der...@osg.samsung.com On 09/01/15 08:09 PM, Bryce Harrington wrote: Signed-off-by: Bryce Harrington br...@osg.samsung.com --- releasing.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH weston] tests: Skip buffer count test if wayland EGL extension isn't present

2015-01-20 Thread Derek Foreman
This also skips the test when running on the headless backend. Signed-off-by: Derek Foreman der...@osg.samsung.com --- tests/buffer-count-test.c | 5 + 1 file changed, 5 insertions(+) diff --git a/tests/buffer-count-test.c b/tests/buffer-count-test.c index 5985a9e..3dd6e1a 100644

[PATCH weston] text: Fix typo

2015-01-16 Thread Derek Foreman
Signed-off-by: Derek Foreman der...@osg.samsung.com --- protocol/input-method.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/input-method.xml b/protocol/input-method.xml index 6961c5a..2f596f0 100644 --- a/protocol/input-method.xml +++ b/protocol/input-method.xml

[PATCH weston] text-input: Replace model with input

2015-01-12 Thread Derek Foreman
commit 78d00e45cc renamed text_model to text_input This cleans up remaining uses of the word model Signed-off-by: Derek Foreman der...@osg.samsung.com --- Please note that this applies on top of my earlier test-input fix-ups patch set, not directly on top of master. protocol/input-method.xml

Re: wl_test / accessibility

2015-01-12 Thread Derek Foreman
On 11/01/15 04:37 PM, Mike Gorse wrote: Hi, I was curious whether wl_test (from weston) is intended to eventually be moved into wayland. I'm asking because it contains functionality (such as being able to track and move the mouse pointer) that the Orca screen reader relies on[1], so I'm

[PATCH weston 3/6] zoom: Rename zoom_area_center_from_pointer to zoom_area_center_from_point

2015-01-09 Thread Derek Foreman
It doesn't do anything with a pointer, and zoom can be initiated by the keyboard, so the name was a little confusing. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/zoom.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/zoom.c b/src/zoom.c index

[PATCH weston 1/6] zoom: Change zoom-active to a bool

2015-01-09 Thread Derek Foreman
Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/compositor.h | 2 +- src/zoom.c | 7 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/compositor.h b/src/compositor.h index 3f7ed4a..311bea0 100644 --- a/src/compositor.h +++ b/src/compositor.h @@ -152,7

[PATCH weston 2/6] zoom: Call weston_output_activate_zoom() appropriately

2015-01-09 Thread Derek Foreman
No longer call weston_output_update_zoom() when trying to zoom out on an unzoomed output. Add an assert() to make sure update_zoom is never called without an active zoom. Signed-off-by: Derek Foreman der...@osg.samsung.com --- desktop-shell/shell.c | 5 - src/zoom.c| 2 ++ 2

[PATCH weston 5/6] zoom: Only use a motion listener if a pointer is available

2015-01-09 Thread Derek Foreman
if a device is plugged in to control the pointer. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/compositor.h | 4 src/input.c | 4 src/zoom.c | 31 --- 3 files changed, 36 insertions(+), 3 deletions(-) diff --git a/src/compositor.h

[PATCH weston 4/6] zoom: Store the seat that initiated a zoom

2015-01-09 Thread Derek Foreman
Track the seat that initiated a seat instead of picking the first one. Signed-off-by: Derek Foreman der...@osg.samsung.com --- desktop-shell/shell.c | 2 +- src/compositor.h | 4 +++- src/zoom.c| 20 +++- 3 files changed, 11 insertions(+), 15 deletions(-) diff

[PATCH weston 6/6] zoom: Change how we select a zoom location

2015-01-09 Thread Derek Foreman
that initiated a zoom no longer has a keyboard (so is unable to change the zoom) then other seats will control that zoom. The zoom may jump when the target changes. Signed-off-by: Derek Foreman der...@osg.samsung.com --- desktop-shell/shell.c | 18 + src/compositor.c | 70

[PATCH weston 0/6] Better multi-seat zoom handling

2015-01-09 Thread Derek Foreman
don't annoy anyone, but I think they only change things in cases that crashed or were obviously weird before. The normal (single seat with a mouse) use case should act as before. Derek Foreman (6): zoom: Change zoom-active to a bool zoom: Call weston_output_activate_zoom() appropriately zoom

Re: [PATCH weston v2 01/20] weston_surface: Add surface-to-buffer and buffer-to-surface matrices

2015-01-09 Thread Derek Foreman
On 09/01/15 02:52 PM, Giulio Camuffo wrote: I have a comment below, the rest looks good to me. 2014-10-16 18:55 GMT+03:00 Derek Foreman der...@osg.samsung.com: From: Jason Ekstrand ja...@jlekstrand.net --- src/compositor.c | 84

Re: [PATCH weston v2 05/20] pixman-renderer: Add a weston_matrix_to_pixman_transform function and simplify the buffer-to-output matrix computation

2015-01-09 Thread Derek Foreman
Thanks for looking at this! On 09/01/15 03:15 PM, Giulio Camuffo wrote: One comment below, otherwise looks fine 2014-10-16 18:55 GMT+03:00 Derek Foreman der...@osg.samsung.com: From: Jason Ekstrand ja...@jlekstrand.net Now that we have a buffer-to-surface matrix and the global-to-output

Re: [PATCH weston] input: Destroy the pointer when the last device is unplugged

2015-01-07 Thread Derek Foreman
On 06/01/15 09:25 PM, Jonas Ådahl wrote: On Tue, Jan 06, 2015 at 07:51:43PM -0600, Derek Foreman wrote: Removing the last device that provides a pointer now destroys the pointer struct and sets it to NULL (so things like zoom don't use the old co-ordinates) The fact that the pointer

[PATCH weston] input: Add comment explaining why pointer isn't freed when device is removed

2015-01-07 Thread Derek Foreman
When the last pointer is removed from a seat, the pointer struct is intentionally kept. This has some interesting side effects, so I've documented it here so people like me don't errantly assume it's a bug. Signed-off-by: Derek Foreman der...@osg.samsung.com --- I tried to fix this bug

[PATCH weston] input: Destroy the pointer when the last device is unplugged

2015-01-06 Thread Derek Foreman
Removing the last device that provides a pointer now destroys the pointer struct and sets it to NULL (so things like zoom don't use the old co-ordinates) Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/input.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [PATCH weston] desktop-shell: Don't crash on zoom without a pointer in the seat

2015-01-06 Thread Derek Foreman
On 06/01/15 04:04 PM, Peter Hutterer wrote: On Tue, Jan 06, 2015 at 02:28:13PM -0600, Derek Foreman wrote: The zoom effect zooms at the seat's current pointer location. When no pointer is present the zoom key bindings cause a crash. Instead, check for the absence of a pointer and log

[PATCH weston v2 1/6] test: Add a compositor test-mode

2014-12-22 Thread Derek Foreman
For now, the intention of test-mode is to have a way to allow a client to control the presentation clock to allow capturing deterministic screenshots during testing. Once in test-mode you're trapped in test-mode forever. Signed-off-by: Derek Foreman der...@osg.samsung.com --- protocol/wayland

[PATCH weston v2 2/6] compositors: Wrap clock_gettime() usage

2014-12-22 Thread Derek Foreman
In preparation for a future patch which allows test clients to control the presentation clock, we wrap any clock_gettime() of the presentation clock in weston_compositor_presentation_clock_gettime(). Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/compositor-drm.c | 2 +- src

[PATCH weston v2 3/6] test: Add clock_settime()

2014-12-22 Thread Derek Foreman
Add a way to set the presentation clock to an arbitrary value, but only when in test mode. Signed-off-by: Derek Foreman der...@osg.samsung.com --- protocol/wayland-test.xml | 9 + src/compositor.c | 23 +++ src/compositor.h | 4 tests/weston

Re: [PATCH weston] compositor-x11: Move the x11 event handler to the display loop

2014-12-19 Thread Derek Foreman
On 19/12/14 06:40 AM, Pekka Paalanen wrote: On Fri, 12 Dec 2014 14:29:42 -0600 Derek Foreman der...@osg.samsung.com wrote: I just noticed that the follow patch *exactly* undoes commit 22ba60e Is there any other reason that commit was necessary, or was it intended to be cosmetic? No, I

[PATCH weston 6/6] compositor-headless: Add test mode

2014-12-19 Thread Derek Foreman
Add a test mode callback for compositor-headless that allows client driven repaint. Signed-off-by: Derek Foreman der...@osg.samsung.com --- src/compositor-headless.c | 34 -- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/src/compositor-headless.c

[PATCH weston 0/6] Add client driven repaint and clock for testing

2014-12-19 Thread Derek Foreman
This series allows test clients to put the compositor into a new test mode where the presentation clock is controlled by the client, and the client can request a repaint. Only the headless compositor supports this for now. Derek Foreman (6): test: Add a compositor test-mode compositors: Wrap

[PATCH weston 1/6] test: Add a compositor test-mode

2014-12-19 Thread Derek Foreman
For now, the intention of test-mode is to have a way to allow a client to control the presentation clock to allow capturing deterministic screenshots during testing. Once in test-mode you're trapped in test-mode forever. Signed-off-by: Derek Foreman der...@osg.samsung.com --- protocol/wayland

<    5   6   7   8   9   10   11   12   >