Re: [PATCH weston] Simply the matrix calculation for zooming

2014-04-25 Thread Jason Ekstrand
weston_matrix_multiply(&output->matrix, &modelview); > > + weston_matrix_translate(&output->matrix, -output->zoom.trans_x, > > + output->zoom.trans_y, 0); > > + weston_matrix_s

Re: [PATCH weston] screen-share: Set new environment variable to identify server display

2014-04-29 Thread Jason Ekstrand
_SOCKET going in different directions. Also, it would be worth looking into whether or not we need to actually unset WAYLAND_SOCKET. I don't think it will ever be set in the main Weston process; I just cleared it to make sure. Thanks, --Jason Ekstrand > Signed-off-by: Andrew Wedgbu

Re: [PATCH 6/6] window: Add a simple getenv to force SHM rendering

2014-04-29 Thread Jason Ekstrand
On Apr 29, 2014 5:35 AM, "Pekka Paalanen" wrote: > > On Mon, 28 Apr 2014 11:19:32 -0400 > "Jasper St. Pierre" wrote: > > > --- > > clients/window.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/clients/window.c b/clients/window.c > > index d822af7..3897440 10

Re: [PATCH weston v2] screen-share: Don't unset server environment variables

2014-04-30 Thread Jason Ekstrand
Looks good to me. Reviewed-by: Jason Ekstrand On Apr 30, 2014 3:52 AM, "Andrew Wedgbury" wrote: > There is no need to unset WAYLAND_DISPLAY and WAYLAND_SOCKET when > screen-share > launches the fullscreen shell server. This was done originally in case the > launched ser

Re: [PATCH weston] screen-share: Allow fullscreen shell command to be configured

2014-05-01 Thread Jason Ekstrand
On Thu, May 1, 2014 at 9:00 AM, Andrew Wedgbury wrote: > Currently the screen-share module uses a hard-coded command to start the > fullscreen shell server. This patch causes the module to read the command > from > the weston config file (from the "command" key in the "screen-share" > section). >

Re: [PATCH weston v2] screen-share: Allow fullscreen shell command to be configured

2014-05-02 Thread Jason Ekstrand
Yeah, this looks better. Reviewed-by: Jason Ekstrand On Fri, May 2, 2014 at 4:01 AM, Andrew Wedgbury wrote: > I've updated this based on comments, simplifying the command handling. > > Currently the screen-share module uses a hard-coded command to start the > fullscreen s

Re: New to Wayland, Need suggestion on a starting point

2014-05-02 Thread Jason Ekstrand
You could also go after this one: https://bugs.freedesktop.org/show_bug.cgi?id=77769 It shouldn't be too bad if you just follow along with what's done for mouse support. --Jason Ekstrand On Fri, May 2, 2014 at 7:08 AM, Pekka Paalanen wrote: > On Fri, 02 May 2014 17:11:34 +0530

Re: [PATCH] protocol: Change wl_surface.damage to be in buffer coordinates.

2014-05-02 Thread Jason Ekstrand
Bump. I also just added this to the bug-tracker: https://bugs.freedesktop.org/show_bug.cgi?id=78190 --Jason Ekstrand On Thu, Feb 27, 2014 at 12:37 AM, Pekka Paalanen wrote: > On Wed, 26 Feb 2014 21:13:16 -0600 > Jason Ekstrand wrote: > > > Technically, wl_surface.damage is

Re: [PATCH wayland 1/3] server: Create the socket FD after taking the lock

2014-05-07 Thread Jason Ekstrand
Yeah, this looks good to me. It does change the order of a couple of system calls, but it looks ok to me. Reviewed-by: Jason Ekstrand On Wed, May 7, 2014 at 9:25 AM, Jasper St. Pierre wrote: > --- > src/wayland-server.c | 15 +++ > 1 file changed, 7 insertions(+), 8

Re: [PATCH wayland 2/3] server: Split out code to open sockets for a specific display name

2014-05-07 Thread Jason Ekstrand
Comments below, --Jason Ekstrand On Wed, May 7, 2014 at 9:25 AM, Jasper St. Pierre wrote: > We'll use this to autodetect a good socket to open on. > --- > src/wayland-server.c | 40 +--- > 1 file changed, 25 insertions(+), 15 deletions(-) >

Re: [PATCH wayland 3/3] server: Add a simple API to find a good default display

2014-05-07 Thread Jason Ekstrand
DISPLAY is not set and wayland-0 is taken, try wayland-1 etc.". It slightly changes default behavior, but I don't really see why failing on wayland-0 being taken is a good thing. Thanks, --Jason Ekstrand > + } > + } while (displayno++ < MAX_DISPLAYNO); > +

Re: [PATCH 1/2] cairo-util: Add frame_touch_motion support

2014-05-07 Thread Jason Ekstrand
On Tue, May 6, 2014 at 9:46 PM, Boyan Ding wrote: > --- > shared/cairo-util.h | 3 +++ > shared/frame.c | 24 > 2 files changed, 27 insertions(+) > > diff --git a/shared/cairo-util.h b/shared/cairo-util.h > index 4493b0d..7aebb65 100644 > --- a/shared/cairo-util.h

Re: [PATCH 0/2] weston: Add touch support to nested wayland backend

2014-05-07 Thread Jason Ekstrand
Boyan, Thanks for picking this up! I'm making some comments on the patches themselves. Unfortunately, I don't have touch hardware to test it with, but I hope my comments are helpful none the less. --Jason Ekstrand On Tue, May 6, 2014 at 9:46 PM, Boyan Ding wrote: > The followin

Re: [PATCH 2/2] compositor-wayland: Add touch support

2014-05-07 Thread Jason Ekstrand
Boyan, By and large, this looks really good! I have just a few comments below. As I said in another e-mail, I don't have any touch hardware I can test this on, so I wasn't able to actually test it. On Tue, May 6, 2014 at 9:46 PM, Boyan Ding wrote: > Adding touch support to weston's nested wayl

Re: [PATCH] Do not distribute generated headers

2014-05-07 Thread Jason Ekstrand
I won't claim to be an autotools expert, but this looks sane to me. Probably something we want to take care of for 1.5. Reviewed-by: Jason Ekstrand On Wed, May 7, 2014 at 7:09 AM, Thierry Reding wrote: > From: Thierry Reding > > The wayland-server-protocol.h and wayland-cli

Re: [PATCH] Destroy resources when destroying input and output

2014-05-08 Thread Jason Ekstrand
On Tue, Dec 31, 2013 at 3:37 AM, Pekka Paalanen wrote: > On Wed, 25 Dec 2013 17:02:09 +0100 > Mariusz Ceier wrote: > > > Some structures containing resources list are freed before > > resources on that list are destroyed, and that triggers invalid > > read/write in compositor.c:3103 indirectly c

Re: [PATCH weston] Destroy resources when destroying an output

2014-05-08 Thread Jason Ekstrand
On Thu, May 8, 2014 at 1:07 PM, Mariusz Ceier wrote: > Hi, >I sent similar patch in the past, and this reply from Pekka may be > still relevant: > > http://lists.freedesktop.org/archives/wayland-devel/2013-December/012691.html > See the reply I just sent out to the abo

Re: [PATCH] Destroy resources when destroying input and output

2014-05-09 Thread Jason Ekstrand
n to NULL. For that matter, we could just do that explicitly in weston and not add API for it. The big chunk of magic is in handling new_id requests. We would need to create zombie wl_resource's for each new_id argument on a call to a zombified wl_resource. Now that Pekka mentioned it, I

Re: [PATCH 2/2] compositor-wayland: Add touch support

2014-05-09 Thread Jason Ekstrand
On Fri, May 9, 2014 at 1:09 AM, Boyan Ding wrote: > At 2014-05-08 09:55:23, "Jason Ekstrand" wrote: > > Boyan, > By and large, this looks really good! I have just a few comments below. > As I said in another e-mail, I don't have any touch hardware I can test

Re: [PATCH 1/2] cairo-util: Add frame_touch_motion support

2014-05-13 Thread Jason Ekstrand
rack of which > > button we hover on, just like hover_button in frame_pointer. > > > > I'll also add a frame_touch_cancel function, it seems not > > that hard. Just scan the list of touches and take appropriate

Re: [PATCH weston 1/4] Handle requests using outputs that have been unplugged

2014-05-19 Thread Jason Ekstrand
Neil, Looks good except for the two comments below --Jason On Mon, May 19, 2014 at 12:23 PM, Neil Roberts wrote: > Previously when an output was unplugged the clients' resources for it > were left around and if they were used in a request it could cause > Weston to access invalid memory. Now wh

Re: [PATCH weston 1/4] Handle requests using outputs that have been unplugged

2014-05-19 Thread Jason Ekstrand
One more comment On Mon, May 19, 2014 at 3:04 PM, Jason Ekstrand wrote: > Neil, > Looks good except for the two comments below > --Jason > > > On Mon, May 19, 2014 at 12:23 PM, Neil Roberts wrote: > >> Previously when an output was unplugged the clients' resource

Re: [PATCH 2/4] Add a release request to wl_output

2014-05-19 Thread Jason Ekstrand
Yup, we need this. Reviewed-By: Jason Ekstrand On Mon, May 19, 2014 at 12:26 PM, Neil Roberts wrote: > Outputs can come and go within the compositor. If we don't have a way > for the client to destroy the resource then the resources within the > compositor will effectively

Re: [PATCH 3/4] Add a macro to get the opcode number of a request given the interface

2014-05-19 Thread Jason Ekstrand
Ooh, I like this. I thought about having wayland-scanner emit more #defines, but this works rather nicely. One question: do we want it in wayland-util or wayland-server? Putting it in wayland-util exposes it client-side as well. --Jason On Mon, May 19, 2014 at 12:26 PM, Neil Roberts wrote: >

Re: [PATCH weston 4/4] Handle wl_output.release

2014-05-19 Thread Jason Ekstrand
Looks good to me. Reviewed-By: Jason Ekstrand On Mon, May 19, 2014 at 12:27 PM, Neil Roberts wrote: > The wl_output.release request is now handled. It just causes the > resource to be destroyed. This is also set as the destructor when > zombifying the resource. > --- > src/co

Re: "Add basic mouse pointer acceleration" libinput patch breaks make check

2014-05-23 Thread Jason Ekstrand
It might be better to reply to the patch. This e-mail is liable to be forgotten if the patches sit for very long. --Jason Ekstrand On Fri, May 23, 2014 at 7:00 AM, Hans de Goede wrote: > Hi All, > > I've picked Jonas' 2 mouse accel patches into my local tree, and >

Re: [PATCH weston] comp-wayland: use safe foreach when destroying outputs

2014-05-23 Thread Jason Ekstrand
To be honest, I don't think I looked at the other backends too much when writing the wayland backend. I guess cleaning up myself seemed like a good idea at the time. I don't think it really matters; having it in shutdown just lets backends be lazy. --Jason On Fri, May 23, 2014 at 2:03 AM, Pekka

[PATCH] Add a simple client for testing compositor damage handling

2014-06-11 Thread Jason Ekstrand
From: Jason Ekstrand This allows for easily testing a compositor's damage tracking in all currently available configurations including wl_surface.buffer_transform, wl_surface.buffer_scale, and wl_viewport. It also includes a --rotating-damage that flag instructs the client to chang

Re: [PATCH] compositor: update the surface size when there is a size change without a buffer attach

2014-06-18 Thread Jason Ekstrand
,7 +1531,7 @@ weston_surface_attach(struct weston_surface *surface, > > surface->compositor->renderer->attach(surface, buffer); > > - weston_surface_set_size_from_buffer(surface); > + weston_surface_calculate_size_from_buffer(surface); > } > I think w

Re: [PATCH] compositor: update the surface size when there is a size change without a buffer attach

2014-06-19 Thread Jason Ekstrand
Yes, On Jun 18, 2014 11:57 PM, "Pekka Paalanen" wrote: > > On Wed, 18 Jun 2014 12:38:50 -0700 > Jason Ekstrand wrote: > > > On Fri, Jun 13, 2014 at 9:14 AM, George Kiagiadakis < > > george.kiagiada...@collabora.com> wrote: > > > >

[PATCH weston 0/2] Unify the commit logic

2014-06-20 Thread Jason Ekstrand
This little two-patch series unifies all of the surface commit logic in one place. Previously the commit logic was duplicated in weston_surface and weston_subsurface functions in order to handle the commit cache. Jason Ekstrand (2): Move weston_subsurface to after weston_surface Create a

[PATCH weston 2/2] Create a weston_surface_state structure for storing pending surface state and move the surface commit logic into weston_surface_commit_state

2014-06-20 Thread Jason Ekstrand
From: Jason Ekstrand This new structure is used for both weston_surface.pending and weston_subsurface.cached. Signed-off-by: Jason Ekstrand --- src/compositor.c | 151 +++ src/compositor.h | 80 +++-- 2 files changed

[PATCH weston 1/2] Move weston_subsurface to after weston_surface

2014-06-20 Thread Jason Ekstrand
From: Jason Ekstrand It makes more sense there. Signed-off-by: Jason Ekstrand --- src/compositor.h | 102 +++ 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/src/compositor.h b/src/compositor.h index eae1b20..06f8b03 100644

Re: [PATCH weston 0/2] Unify the commit logic

2014-06-20 Thread Jason Ekstrand
cleanup? > Just curious, I'm not insinuating anything. > > > On Fri, Jun 20, 2014 at 8:25 PM, Jason Ekstrand > wrote: > >> This little two-patch series unifies all of the surface commit logic in >> one >> place. Previously the commit logic was dupl

Re: [PATCH] weston-build: Fix aclocal error during autogen.sh

2014-06-20 Thread Jason Ekstrand
I'm not sure that I like ignoring m4 completely. If we ever do put anything useful there, it would be good to make sure it doesn't get forgotten. In the wayland repo, we have a m4/.gitignore that ignores the 5 files that matter. Copying that one might be a better idea. --Jason Ekstran

Re: [PATCH] xdg-shell: Fix a typo in description

2014-06-24 Thread Jason Ekstrand
Thanks, Committed. On 06/22/2014 07:51 PM, Boyan Ding wrote: Signed-off-by: Boyan Ding --- protocol/xdg-shell.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/xdg-shell.xml b/protocol/xdg-shell.xml index 28add40..0327f40 100644 --- a/protocol/xdg-shell.xml +++

Re: [PATCH weston] Clients: Fix memleak issues in various clients of weston

2014-06-24 Thread Jason Ekstrand
Sorry it got lost. I just pushed it. -- Jason Ekstrand On Mon, Jun 23, 2014 at 2:00 AM, Vivek Ellur wrote: > Hi All, > > I had submitted this patch last month. It was reviewed but still not > merged. > I also checked the patch with the latest code, its working fine. Do I nee

[PATCH] data-device: Clean up the logic in start_drag

2014-06-24 Thread Jason Ekstrand
Previoiusly, we had a mess of logic that was repeated with one of the repeats negated. Not only was this unnecisaraly confusing, but it segfaulted and one of the negations was wrong. This cleans the whole mess up and should fix bug #79725. --- src/data-device.c | 30 -

Re: [PATCH weston] shell: fix segfault in fullscreen binding

2014-06-24 Thread Jason Ekstrand
urf->state.fullscreen; > + > + if (shsurf->requested_state.fullscreen) { > + shell_surface_set_output(shsurf, NULL); > Why are we setting the output to null? Prior to 9aa8ce69, it was getting set to shsurf->recommended_output. Was there a reason for the change to null? Does

Re: Candidates for Weston 1.5 stable branch

2014-06-25 Thread Jason Ekstrand
On Wed, Jun 25, 2014 at 8:29 AM, Andrew Wedgbury < andrew.wedgb...@realvnc.com> wrote: > Hi Pekka, > > Would there be any chance of including this patch of mine: > http://lists.freedesktop.org/archives/wayland-devel/2014-May/014562.html > It adds a weston.ini config key for setting the command to

Re: [PATCH] data-device: Clean up the logic in start_drag

2014-06-25 Thread Jason Ekstrand
On Wed, Jun 25, 2014 at 6:16 AM, Pekka Paalanen wrote: > On Tue, 24 Jun 2014 21:23:53 -0700 > Jason Ekstrand wrote: > > > Previoiusly, we had a mess of logic that was repeated with one of the > > repeats negated. Not only was this unnecisaraly confusing, but it > >

Re: wl_tablet specification draft

2014-06-25 Thread Jason Ekstrand
On 06/25/2014 06:05 PM, Peter Hutterer wrote: On Wed, Jun 25, 2014 at 03:19:02PM +0300, Pekka Paalanen wrote: On Tue, 24 Jun 2014 21:56:09 -0400 Chandler Paul wrote: Hello! As you all know I've been working on adding drawing tablet support to the Wayland protocol. Now that we've added suppor

[PATCH] Use pixman_region32_clear instead of our own empty_region

2014-06-26 Thread Jason Ekstrand
This requires pixman 0.25.2 --- clients/nested.c | 9 + configure.ac | 2 +- src/compositor.c | 15 --- src/data-device.c | 11 ++- 4 files changed, 8 insertions(+), 29 deletions(-) diff --git a/clients/nested.c b/clients/nested.c index 44389e4..2a952be 100644

[PATCH v2 2/3] Move weston_frame_callback above weston_surface_create

2014-06-26 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/compositor.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index fa8730f..4ccae79 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -384,6 +384,11 @@ weston_view_create(struct

[PATCH v2 3/3] Create a weston_surface_state structure for storing pending surface state and move the surface commit logic into weston_surface_commit_state

2014-06-26 Thread Jason Ekstrand
From: Jason Ekstrand This new structure is used for both weston_surface.pending and weston_subsurface.cached. Signed-off-by: Jason Ekstrand --- src/compositor.c | 270 +++ src/compositor.h | 80 +++-- 2 files changed, 142

[PATCH v2 1/3] Move weston_subsurface to after weston_surface

2014-06-26 Thread Jason Ekstrand
From: Jason Ekstrand It makes more sense there. Signed-off-by: Jason Ekstrand --- src/compositor.h | 102 +++ 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/src/compositor.h b/src/compositor.h index eae1b20..06f8b03 100644

Re: OpenGL on Wayland

2014-06-27 Thread Jason Ekstrand
a packaging problem far more than it is a programming problem. >> >> Thank you, and, please, forgive me if this message does not correspond >> to these lists. Regards, >> Kalrish >> > > You can request OpenGL context through E

Re: OpenGL on Wayland

2014-06-27 Thread Jason Ekstrand
> Thanks again, > Kalrish > > > On Fri, Jun 27, 2014 at 9:26 PM, Kalrish Bäakjen > wrote: > >> On Fri, Jun 27, 2014 at 9:15 PM, Jason Ekstrand >> wrote: >> >>> The issue everyone talks about is that libGL also contains a GLX >>> im

Re: [PATCH weston] compositor: quick fix for sub-surface mapping

2014-06-30 Thread Jason Ekstrand
ew id wl_shm_pool@14, fd 6, > 25) > [3228654.140] -> wl_shm_pool@14.create_buffer(new id wl_buffer@15, 0, > 250, 250, 1000, 1) > [3228654.180] -> wl_shm_pool@14.destroy() > [3228654.408] -> wl_surface@12.attach(wl_buffer@15, 0, 0) > [3228654.436] -> wl_surface@

Re: problems in compiling wayland

2014-07-03 Thread Jason Ekstrand
Weston master requires wayland master. The WL_SURFACE_ERROR_INVALID_TRANSFORM enum was added after wayland 1.5 You need to make sure you build libwayland from git master and then make sure that weston is building against your custom-built libwayland. --Jason Ekstrand On Thu, Jul 3, 2014 at 12

Re: [PATCH 2/2] cairo-util: Set geometry_dirty in frame_set_title

2014-07-05 Thread Jason Ekstrand
Both patches look good and are committed. I also grabbed them for 1.5 since they're simple bugfixes. Thanks, --Jason Ekstrand On Fri, Jul 4, 2014 at 12:19 AM, Boyan Ding wrote: > Title can decide the geometry of a frame because it may affect the > existence of titlebar,

Re: [PATCH 10/11] weston-image --help works. Also help if no filename is given

2014-07-09 Thread Jason Ekstrand
On Jul 8, 2014 9:18 PM, "Bill Spitzak" wrote: > > --- > clients/image.c |5 + > 1 file changed, 5 insertions(+) > > diff --git a/clients/image.c b/clients/image.c > index 112b93d..573117c 100644 > --- a/clients/image.c > +++ b/clients/image.c > @@ -412,6 +412,11 @@ main(int argc, char *ar

Re: [PATCH 10/11] weston-image --help works. Also help if no filename is given

2014-07-09 Thread Jason Ekstrand
On Jul 9, 2014 6:17 PM, "Jason Ekstrand" wrote: > > > On Jul 8, 2014 9:18 PM, "Bill Spitzak" wrote: > > > > --- > > clients/image.c |5 + > > 1 file changed, 5 insertions(+) > > > > diff --git a/clients/image.c b/cl

Re: [Freedreno] Freedreno Mesa with wayland support

2014-07-11 Thread Jason Ekstrand
ing.xml > file.h". Also, you need to make sure that wayland-scanner is properly build/installed in your system. If you're doing a cross-compile, you'll have to build it for the host architecture and make sure your build tool can find it. Hope that helps, --Jason Ekstrand &

Re: [PATCH wayland v3] client: add a public function to make a roundtrip on a custom queue

2014-07-14 Thread Jason Ekstrand
Guilio, Would it be better to name it wl_event_queue_roundtrip and just have it take the wl_event_queue? I guess it is sort-of a wl_display operation, but you could argue it either way. Thoughts? --Jason Ekstrand On Mon, Jul 14, 2014 at 7:15 AM, Giulio Camuffo wrote: > wl_display_roundt

Re: [PATCH wayland] client: add a public function to make a roundtrip on a custom queue

2014-07-15 Thread Jason Ekstrand
On Tue, Jul 15, 2014 at 10:39 AM, Daniel Stone wrote: > Hi, > > > On Tuesday, July 15, 2014, Giulio Camuffo wrote: > >> 2014-07-14 22:31 GMT+03:00 Jason Ekstrand : >> > Guilio, >> > Would it be better to name it wl_event_queue_roundtrip and just have it &g

libwayland and Java

2012-12-16 Thread Jason Ekstrand
Hello All, My name is Jason Ekstrand and I'm currently working on writing a Wayland server for Android. This is not to be confused with what Pekka Paalanen is working on; rather, my objective is to make a Wayland server that runs as an actual Android app. I have a basic proof-of-concept wo

Re: libwayland and Java

2012-12-17 Thread Jason Ekstrand
for example) that I may be able to translate fairly directly. These translations are going to be much easier if I can do it in Java. I'm sorry if that got a bit long-winded but I hope you all can understand what I'm trying to do a bit better. I appreciate any input you can offer. --Jason

Re: libwayland and Java

2012-12-28 Thread Jason Ekstrand
That's what I have in mind. It probably needs to be tweaked but this should at least give a flavor of what I'm looking for. --Jason Ekstrand On Tue, Dec 18, 2012 at 2:32 AM, Pekka Paalanen wrote: > On Mon, 17 Dec 2012 12:17:48 -0600 > Jason Ekstrand wrote: > > > I&#x

Re: Creating a Window Manager to use Wayland (that's not in C)

2013-01-08 Thread Jason Ekstrand
I'm currently working on something similar in Java for the Android platform. I'm getting close to the point where I can throw my java binding code up on GitHub in case that's helpful. I'd love to see some of your thoughts on language bindings. Haskell in particu

wayland-java now on GitHub

2013-01-09 Thread Jason Ekstrand
27;m doing. Comments and suggestions are welcome! --Jason Ekstrand ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

[PATCH wayland] Added a destroy signal to the wl_display object

2013-01-11 Thread Jason Ekstrand
Added a destroy signal to the wl_display object. Signed-off by: Jason Ekstrand --- This makes it easier to avoid memory leaks when writing wrappers around wl_global objects. This shouldn't break ABI, so it would be nice if it could make it into 1.0.4. src/wayland-server.c

[PATCH] Added a destroy signal to the wl_display object.

2013-01-11 Thread Jason Ekstrand
event_loop_test_SOURCES = event-loop-test.c $(test_runner_src) fixed_test_SOURCES = fixed-test.c $(test_runner_src) diff --git a/tests/display-test.c b/tests/display-test.c new file mode 100644 index 000..e1692b7 --- /dev/null +++ b/tests/display-test.c @@ -0,0 +1,79 @@ +/* + * Copyright © 2012 Intel Corporat

[PATCH wayland] Add a destroy signal to the wl_event_loop object.

2013-01-11 Thread Jason Ekstrand
ruct wl_display *display); struct wl_event_loop *wl_display_get_event_loop(struct wl_display *display); diff --git a/tests/event-loop-test.c b/tests/event-loop-test.c index e630cde..702b7b3 100644 --- a/tests/event-loop-test.c +++ b/tests/event-loop-test.c @@ -1,5 +1,6 @@ /* * Copyright © 2012 Intel

Wayland generic dispatching API proposal version 2

2013-01-14 Thread Jason Ekstrand
having to depend on libffi. As always, questions and comments are welcome! --Jason Ekstrand ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [PATCH wayland] protocol: Add wl_notification_daemon interface

2013-01-21 Thread Jason Ekstrand
On Sun, Jan 20, 2013 at 12:16 PM, Quentin Glidic wrote: > This interface is designed to be binded only once by a notification > daemon. Should we have an error enum for "interface already bound". That way the compositor can do something useful if two clients try to bind at the same time. Also,

[PATCH wayland 0/4] wayland: Add support for custom dispatchers

2013-01-29 Thread Jason Ekstrand
Jason Ekstrand (4): Make a #define for WL_CLOSURE_MAX_ARGS instead of a magic number. Add a default dispatcher function and related test Convert wl_closure to use wl_argument and enable dispatchers Fill out dummy objects in tests so dispatchers will work src/connection.c | 404

[PATCH wayland 2/4] Add a default dispatcher function and related test

2013-01-29 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c| 80 + src/wayland-private.h | 5 +++ src/wayland-util.h | 12 +++ tests/.gitignore| 1 + tests/Makefile.am | 2 ++ tests/dispatcher-test.c | 96

[PATCH wayland 1/4] Make a #define for WL_CLOSURE_MAX_ARGS instead of

2013-01-29 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/wayland-private.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wayland-private.h b/src/wayland-private.h index 4ec9896..ecd7f17 100644 --- a/src/wayland-private.h +++ b/src/wayland-private.h @@ -39,6 +39,7 @@ #define

[PATCH wayland 3/4] Convert wl_closure to use wl_argument and enable dispatchers

2013-01-29 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c | 326 +- src/wayland-client.c | 15 ++- src/wayland-private.h | 10 +- src/wayland-server.c | 22 +--- src/wayland-util.h| 26 +++- 5 files changed, 203 insertions(+), 196

[PATCH wayland 4/4] Fill out dummy objects in tests so dispatchers

2013-01-29 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- tests/connection-test.c | 35 +-- tests/os-wrappers-test.c | 11 +-- 2 files changed, 38 insertions(+), 8 deletions(-) diff --git a/tests/connection-test.c b/tests/connection-test.c index 1ac88d2..49b968b 100644 --- a

[PATCH wayland 0/7] Add support for custom dispatchers

2013-02-01 Thread Jason Ekstrand
not seeing why this happens but it may be that I don't understand ABI's well enough. Jason Ekstrand (7): Make a #define for WL_CLOSURE_MAX_ARGS instead of a magic number. Add a default dispatcher function and related test Convert wl_closure to use wl_argument and enable dispatch

[PATCH 1/7] Make a #define for WL_CLOSURE_MAX_ARGS instead of a magic number.

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/wayland-private.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wayland-private.h b/src/wayland-private.h index 4ec9896..ecd7f17 100644 --- a/src/wayland-private.h +++ b/src/wayland-private.h @@ -39,6 +39,7 @@ #define

[PATCH 2/7] Add a default dispatcher function and related test

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c| 80 + src/wayland-private.h | 5 +++ src/wayland-util.h | 12 +++ tests/.gitignore| 1 + tests/Makefile.am | 2 ++ tests/dispatcher-test.c | 96

[PATCH 3/7] Convert wl_closure to use wl_argument and enable dispatchers

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c | 343 +- src/wayland-client.c | 29 +++-- src/wayland-private.h | 14 ++- src/wayland-server.c | 22 +--- src/wayland-util.h| 26 +++- 5 files changed, 223 insertions(+), 211

[PATCH 4/7] Fill out dummy objects in tests so dispatchers will work

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- tests/connection-test.c | 35 +-- tests/dispatcher-test.c | 3 ++- tests/os-wrappers-test.c | 11 +-- 3 files changed, 40 insertions(+), 9 deletions(-) diff --git a/tests/connection-test.c b/tests/connection-test.c

[PATCH 5/7] Make the scanner generate version 1 wl_interface structures

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/scanner.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scanner.c b/src/scanner.c index 6d2eddd..b3f5bf5 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -1118,7 +1118,7 @@ emit_code(struct protocol *protocol

[PATCH 7/7] Test for proper usage of custom vs. default dispatchers

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- tests/dispatcher-test.c | 66 + 1 file changed, 66 insertions(+) diff --git a/tests/dispatcher-test.c b/tests/dispatcher-test.c index 54b6a41..894f20d 100644 --- a/tests/dispatcher-test.c +++ b/tests/dispatcher

[PATCH 6/7] Add wl_arguments forms of wl_resource_post_event and wl_resource_queue_event

2013-02-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/wayland-server.c | 47 --- src/wayland-server.h | 4 2 files changed, 40 insertions(+), 11 deletions(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index e45b880..dcbe0c2 100644 --- a/src

Re: [PATCH wayland 0/7] Add support for custom dispatchers

2013-02-08 Thread Jason Ekstrand
feasible for someone to write their own dispatcher for a specific object instead of using the default one generated by the scanner. There's more comments below. Thanks, --Jason On Thu, Feb 7, 2013 at 8:07 PM, Kristian Høgsberg wrote: > On Fri, Feb 01, 2013 at 10:09:41AM -0600, Jason Ekstrand wro

Developing a core shell protocol

2013-02-09 Thread Jason Ekstrand
ether. Each shell interface is going to be accompanied by a corresponding surface interface. I'm interested to hear everyone's thoughts. Happy Brainstorming, --Jason Ekstrand ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: Developing a core shell protocol

2013-02-11 Thread Jason Ekstrand
On Mon, Feb 11, 2013 at 4:06 AM, Pekka Paalanen wrote: > On Sat, 9 Feb 2013 12:20:57 -0600 > Jason Ekstrand wrote: > >> Wayland Devs, >> This is a brainstorming e-mail concerning trying to develop some sort >> of core shell protocol. I will shortly begin work on

Re: Developing a core shell protocol

2013-02-12 Thread Jason Ekstrand
On Tue, Feb 12, 2013 at 2:52 AM, Pekka Paalanen wrote: > On Tue, 12 Feb 2013 08:51:26 +0100 > Kai-Uwe Behrmann wrote: > >> On 11.02.2013 11:06, Pekka Paalanen wrote: >> > I want to make sure again, that when we talk about shells in Wayland, >> > we usually talk about public shell interfaces in th

Re: [PATCH 02/12] event-loop: Add support for BSD???s kevent() instead of epoll()

2013-02-15 Thread Jason Ekstrand
brary such as libevent where they've already done all of the event abstraction for us. However, that involves pulling in another dependency which may not be worth it. Thoughts? --Jason Ekstrand On Fri, Feb 15, 2013 at 6:56 AM, Philip Withnall wrote: > This is a large step towards s

[PATCH wayland 0/7] Custom dispatchers version 3

2013-02-18 Thread Jason Ekstrand
x27;t break ABI and switching from one dispatcher in wl_interface to two. This way you can have seperate dispatchers for events vs. requests. If someone wants to use the same dispatcher for both, they can simply set them to the same thing. Jason Ekstrand (7): Make a #define for WL_CLOSURE_MAX

[PATCH wayland 1/7] Make a #define for WL_CLOSURE_MAX_ARGS instead of a magic number.

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/wayland-private.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wayland-private.h b/src/wayland-private.h index 4ec9896..ecd7f17 100644 --- a/src/wayland-private.h +++ b/src/wayland-private.h @@ -39,6 +39,7 @@ #define

[PATCH wayland 2/7] Add a default dispatcher function and related test

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c| 82 ++ src/wayland-private.h | 5 +++ src/wayland-util.h | 12 +++ tests/.gitignore| 1 + tests/Makefile.am | 2 ++ tests/dispatcher-test.c | 95

[PATCH wayland 3/7] Clean up wl_closure and convert it to using a wl_argument array

2013-02-18 Thread Jason Ekstrand
serializing for the network and conversions to libffi format happen only as-needed. Signed-off-by: Jason Ekstrand --- src/connection.c | 569 +- src/wayland-client.c | 31 ++- src/wayland-private.h | 19 +- src/wayland-server.c | 22 +- 4

[PATCH wayland 4/7] Add support for custom dispatchers

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/connection.c| 15 + src/wayland-client.c| 13 +-- src/wayland-private.h | 3 ++- src/wayland-server.c| 9 +++- src/wayland-util.h | 27 -- tests/dispatcher-test.c | 60

[PATCH wayland 5/7] Fill out dummy objects and fix wl_closure_invoke calls

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- tests/connection-test.c | 36 ++-- tests/dispatcher-test.c | 1 + tests/os-wrappers-test.c | 11 +-- 3 files changed, 40 insertions(+), 8 deletions(-) diff --git a/tests/connection-test.c b/tests/connection-test.c

[PATCH wayland 6/7] scanner: Properly fill out interfaces

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/scanner.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scanner.c b/src/scanner.c index 6d2eddd..947ceb9 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -1133,6 +1133,7 @@ emit_code(struct protocol *protocol) else

[PATCH wayland 7/7] Add wl_argument forms of wl_resource_post_event and wl_resource_queue_event

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/wayland-server.c | 47 --- src/wayland-server.h | 4 2 files changed, 40 insertions(+), 11 deletions(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index 104f9a6..a33f10e 100644 --- a/src

[PATCH wayland 4/7v2] Add support for custom dispatchers

2013-02-18 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- This is an alternate version that contains a quick asthetics fix as requested by Bill Spitzak. src/connection.c| 15 + src/wayland-client.c| 13 +-- src/wayland-private.h | 3 ++- src/wayland-server.c| 9 +++- src

Re: [PATCH wayland 4/7] Add support for custom dispatchers

2013-02-19 Thread Jason Ekstrand
On Tue, Feb 19, 2013 at 2:22 AM, Pekka Paalanen wrote: > On Mon, 18 Feb 2013 10:03:25 -0600 > Jason Ekstrand wrote: > >> >> Signed-off-by: Jason Ekstrand >> --- >> src/connection.c| 15 + >> src/wayland-client.c| 13 +

[PATCH wayland 4/7 v3] Add support for custom dispatchers

2013-02-19 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- This version contains the documentation changes as requested by Pekka Paalanen as well as the if-statement change suggested by Bill Spitzak. src/connection.c| 15 + src/wayland-client.c| 13 +-- src/wayland-private.h | 3

Re: [PATCH wayland 4/7 v3] Add support for custom dispatchers

2013-02-21 Thread Jason Ekstrand
On Thu, Feb 21, 2013 at 1:44 AM, Pekka Paalanen wrote: > Hi Jason, > > you forgot to CC wayland again. ;-) > > On Wed, 20 Feb 2013 10:23:28 -0600 > Jason Ekstrand wrote: > >> On Wed, Feb 20, 2013 at 3:45 AM, Pekka Paalanen wrote: >> > On Tue, 19 Feb 201

[PATCH wayland] Clean up and refactor wl_closure and associated functions

2013-02-23 Thread Jason Ekstrand
al and the new static serialize_closure function. The wl_closure_send and wl_closure_queue functions are now light wrappers around serialize_closure. Signed-off-by: Jason Ekstrand --- I've re-worked my wl_closure cleanups so they should now be orthogonal to the custom dispatchers stu

Re: [PATCH wayland] Clean up and refactor wl_closure and associated functions

2013-02-26 Thread Jason Ekstrand
On Tue, Feb 26, 2013 at 12:37 PM, Kristian Høgsberg wrote: > On Sat, Feb 23, 2013 at 12:57:09PM -0600, Jason Ekstrand wrote: >> The primary purpose of this patch is to clean up wl_closure and separate >> closure storage, libffi, and the wire format. To that end, a number of >

Re: [PATCH] connection : correct debugging info in wl_closure_print

2013-02-27 Thread Jason Ekstrand
even possible. --Jason Ekstrand On Wed, Feb 27, 2013 at 3:18 AM, Elvis Lee wrote: > - print new object id on server side > - print new object name when wl_registry.bind > --- > src/connection.c | 10 +++--- > src/wayland-client.c |4 ++-- > src/wayland-private.h |

[RFC wayland 0/4] Custom dispatchers via wl_object instead of

2013-02-27 Thread Jason Ekstrand
ement dispatchers, there's no reason to send those to the list again. You can also see this on my personal fork of libwayland: https://github.com/jekstrand/wayland Jason Ekstrand (4): Change wl_closure_invoke to take an opcode instead of an actual function pointer Add wl_resource_init and

<    1   2   3   4   5   6   7   8   >