[PATCH weston v2] input: allow to destroy bindings in their handler

2014-10-03 Thread Giulio Camuffo
use wl_list_for_each_safe to iterate on the bindings list when firing them, this way a binding can safely be destroyed in its function handler. --- src/bindings.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/bindings.c b/src/bindings.c index 7d

[PATCH weston] input: allow to destroy bindings in their handler

2014-10-03 Thread Giulio Camuffo
use wl_list_for_each_safe to iterate on the bindings list when firing them, this way a binding can safely be destroyed in its function handler. --- src/bindings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings.c b/src/bindings.c index 7d30024..d72357c 100644 -

Re: [RFC weston 13/16] compositor: Add a function to test if images transformed by a matrix should be bilinearly filtered

2014-10-03 Thread Bill Spitzak
On 10/03/2014 11:05 AM, Pekka Paalanen wrote: The really lovely part about pixman is that (if I'm "getting" it correctly) you transform the source image instead of transforming destination vertices. So pixman needs things exactly backwards. Yeah, backwards sounds familiar. Just reverse the po

Re: [RFC weston 13/16] compositor: Add a function to test if images transformed by a matrix should be bilinearly filtered

2014-10-03 Thread Bill Spitzak
On 10/03/2014 12:04 AM, Pekka Paalanen wrote: For the gl-renderer this means much bigger changes: the renderer receives a pixels-to-pixels transformation matrix which is the canonical form, and then it needs to adapt it to the normalized GL coordinate system. I usually change the GL viewport p

Re: [RFC weston 13/16] compositor: Add a function to test if images transformed by a matrix should be bilinearly filtered

2014-10-03 Thread Bill Spitzak
On 10/03/2014 08:21 AM, Derek Foreman wrote: One thing that's bugging me... I think normally a 90 degree rotation doesn't require LINEAR filtering - doesn't this change if device pixels aren't square? If the device pixels are not square then a 90 degree rotation that preserves shape will not

[PATCH libinput] cosmetic: convert evdev_need_touch_frame from int to bool

2014-10-03 Thread Derek Foreman
We use stdbool elsewhere, so use it here too for consistency. --- src/evdev.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index d8e3e5a..1b4ce10 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -577,11 +577,11 @@ evdev_process_absolute(stru

Re: [RFC weston 13/16] compositor: Add a function to test if images transformed by a matrix should be bilinearly filtered

2014-10-03 Thread Bill Spitzak
On 10/03/2014 12:25 AM, Pekka Paalanen wrote: AFFINE: last row is 0,0,?,1 NO_SKEW: a00*a01+a10*a11 ~= 0 NO_SCALE: a00^2+a01^2 ~= 1 && a10^2+a11^2 ~= 1 ORTHO: a00==a11==0 or a01==a10==0 NO_ROTATE: a01==a10==0 NOT_DEGENERATE: a00*a11-a10*a01 != 0 NO_MIRROR: a00,a01,a10,a11 are all >= 0 INT_SCALE:

[PATCH wayland] cosmetic: convert some function returns from int to bool

2014-10-03 Thread Derek Foreman
--- src/scanner.c | 5 +++-- src/wayland-shm.c | 9 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index 809130b..dc113f5 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -21,6 +21,7 @@ * OF THIS SOFTWARE. */ +#include #include

Re: Wayland, Weston and libinput to patchwork?

2014-10-03 Thread Bill Spitzak
Seems to me that blank almost always means weston, could blank ones be put in Weston's list? Can it recognize a new version of the same patch? Conversely if a new block of patches has in-reply-to set to one of the messages from an old block, does it realize it is a new version of the patch?

Re: [RFC weston 13/16] compositor: Add a function to test if images transformed by a matrix should be bilinearly filtered

2014-10-03 Thread Derek Foreman
On 03/10/14 02:04 AM, Pekka Paalanen wrote: > On Thu, 02 Oct 2014 17:21:04 -0500 > Derek Foreman wrote: > >> On 02/10/14 02:37 PM, Jason Ekstrand wrote: >>> >>> On Oct 2, 2014 12:37 AM, "Pekka Paalanen" >> > wrote: On Wed, 1 Oct 2014 18:09:32 -0700 Jason

[PATCH weston] cosmetic: replace boolean function return values with bool

2014-10-03 Thread Derek Foreman
For functions that test if something is true/valid and return a 1 or 0, it makes sense to switch to bool. --- src/cms-colord.c| 10 +- src/compositor.c| 20 ++-- src/compositor.h| 5 +++-- src/input.c | 8 src/weston-launch.c | 11 ++-

Re: [RFC weston 13/16] compositor: Add a function to test if images transformed by a matrix should be bilinearly filtered

2014-10-03 Thread Pekka Paalanen
On Fri, 03 Oct 2014 11:36:16 -0500 Derek Foreman wrote: > On 03/10/14 02:04 AM, Pekka Paalanen wrote: > > On Thu, 02 Oct 2014 17:21:04 -0500 > > Derek Foreman wrote: > > > >> On 02/10/14 02:37 PM, Jason Ekstrand wrote: > >>> > >>> On Oct 2, 2014 12:37 AM, "Pekka Paalanen" >>>

Re: [RFC weston 13/16] compositor: Add a function to test if images transformed by a matrix should be bilinearly filtered

2014-10-03 Thread Derek Foreman
On 03/10/14 02:04 AM, Pekka Paalanen wrote: > On Thu, 02 Oct 2014 17:21:04 -0500 > Derek Foreman wrote: > >> On 02/10/14 02:37 PM, Jason Ekstrand wrote: >>> >>> On Oct 2, 2014 12:37 AM, "Pekka Paalanen" >> > wrote: On Wed, 1 Oct 2014 18:09:32 -0700 Jason

Re: [RFC weston 13/16] compositor: Add a function to test if images transformed by a matrix should be bilinearly filtered

2014-10-03 Thread Jason Ekstrand
On Fri, Oct 3, 2014 at 8:21 AM, Derek Foreman wrote: > On 02/10/14 07:09 PM, Jason Ekstrand wrote: > > > > > > On Thu, Oct 2, 2014 at 3:21 PM, Derek Foreman > > wrote: > > > > On 02/10/14 02:37 PM, Jason Ekstrand wrote: > > > > > > On Oct 2, 2014 12:37

Re: xdg shell status and gaps

2014-10-03 Thread Giulio Camuffo
2014-09-26 19:39 GMT+03:00 Jason Ekstrand : > > > On Fri, Sep 26, 2014 at 7:38 AM, Jasper St. Pierre > wrote: >> >> >> >> On Fri, Sep 26, 2014 at 4:07 AM, Carlos Garnacho >> wrote: >>> >>> Hey, >>> >>> On Thu, Sep 25, 2014 at 7:30 PM, Matthias Clasen >>> wrote: On Thu, Sep 25, 2014 at

Re: [RFC weston 13/16] compositor: Add a function to test if images transformed by a matrix should be bilinearly filtered

2014-10-03 Thread Derek Foreman
On 02/10/14 07:09 PM, Jason Ekstrand wrote: > > > On Thu, Oct 2, 2014 at 3:21 PM, Derek Foreman > wrote: > > On 02/10/14 02:37 PM, Jason Ekstrand wrote: > > > > On Oct 2, 2014 12:37 AM, "Pekka Paalanen" > >

Re: Wayland, Weston and libinput to patchwork?

2014-10-03 Thread Daniel Stone
Hi, On 3 October 2014 12:31, Pekka Paalanen wrote: > On Fri, 3 Oct 2014 13:00:05 +0300 > Giulio Camuffo wrote: > > 2014-10-01 11:45 GMT+03:00 Pekka Paalanen : > > > How about we started using http://patchwork.freedesktop.org/ ? > > > > > > Apparently it works fine for Mesa et al., right? > > >

Re: Wayland, Weston and libinput to patchwork?

2014-10-03 Thread Pekka Paalanen
On Fri, 3 Oct 2014 13:00:05 +0300 Giulio Camuffo wrote: > +1 from me too. I have never used patchwork, but any tracking tool > would be a huge improvement. > > 2014-10-01 11:45 GMT+03:00 Pekka Paalanen : > > Hi, > > > > at least with Wayland and Weston, we have bit of hard time tracking the > >

Re: Wayland, Weston and libinput to patchwork?

2014-10-03 Thread Giulio Camuffo
+1 from me too. I have never used patchwork, but any tracking tool would be a huge improvement. 2014-10-01 11:45 GMT+03:00 Pekka Paalanen : > Hi, > > at least with Wayland and Weston, we have bit of hard time tracking the > patches that need attention. I think I am currently the only one who > act

Re: Wayland, Weston and libinput to patchwork?

2014-10-03 Thread Karsten Otto
Looks like this could be really helpful. I find it difficult enough to track the state of my own patches in the list, can't imagine what its like for a maintainer. Also, it could give newcomers a good idea of what's going on in the projects, and where to jump in to help. Cheers, Karsten ___

Re: Wayland, Weston and libinput to patchwork?

2014-10-03 Thread Marek Chalupa
I like it :) Regards, Marek On 1 October 2014 10:45, Pekka Paalanen wrote: > Hi, > > at least with Wayland and Weston, we have bit of hard time tracking the > patches that need attention. I think I am currently the only one who > actually keeps a backlog, my backlog is not public, and I cannot

Re: [RFC weston 13/16] compositor: Add a function to test if images transformed by a matrix should be bilinearly filtered

2014-10-03 Thread Pekka Paalanen
On Thu, 02 Oct 2014 12:15:35 -0700 Bill Spitzak wrote: > On 10/02/2014 12:37 AM, Pekka Paalanen wrote: > > Futhermore, if you wanted to cache the buffer-to-output matrix, you > > would end up with number_of_views * number_of_outputs matrices to be > > cached. The buffer-to-global per-view matrix

Re: [RFC weston 13/16] compositor: Add a function to test if images transformed by a matrix should be bilinearly filtered

2014-10-03 Thread Pekka Paalanen
On Thu, 02 Oct 2014 17:21:04 -0500 Derek Foreman wrote: > On 02/10/14 02:37 PM, Jason Ekstrand wrote: > > > > On Oct 2, 2014 12:37 AM, "Pekka Paalanen" > > wrote: > >> > >> On Wed, 1 Oct 2014 18:09:32 -0700 > >> Jason Ekstrand mailto:ja...@jlekstrand.net>> wrote: >