Re: [PATCH] wayland-serer: Remove input structs and helper functions

2013-04-29 Thread Kristian Høgsberg
On Mon, Apr 29, 2013 at 05:23:03PM -0400, Kristian Høgsberg wrote: > Looking at the functionality in the server library, it's clear (in hindsight) > that there are two different "things" in there: 1) The IPC API, that is, > everything that concerns wl_display, wl_client, wl_resource and > 2) a half

Re: [PATCH] Fixed simple-egl tear-down order to prevent a crash on exit time.

2013-04-29 Thread Sinclair Yeh
On Mon, Apr 22, 2013 at 12:48:43PM +0300, Pekka Paalanen wrote: > On Fri, 19 Apr 2013 17:49:12 + > "Yeh, Sinclair" wrote: > > > wl_egl_window_destory() distroys the window handle that > > dri2_destroy_surface() later uses when eglTerminate() is called. > > > > Reordering the tear down order

[PATCH 2/3] compositor: Fold wl_keyboard into weston_keyboard

2013-04-29 Thread Kristian Høgsberg
Now that these struct are both in weston, there's no point in having both. Consolidate things by moving wl_keyboard into weston_keyboard. --- src/bindings.c | 16 +- src/compositor-x11.c | 2 +- src/compositor.c | 46 ++--- src/compositor.h | 82 +

[PATCH 1/3] compositor: Import input structs and helper functions from wayland

2013-04-29 Thread Kristian Høgsberg
We now rely on 1.1.90 for the wayland-server library without the input structs and focus helper functions. Include the code from wayland in compositor.h and new files data-device.c and input.c. --- configure.ac | 2 +- src/Makefile.am | 2 + src/compositor.h | 232

[PATCH] wayland-serer: Remove input structs and helper functions

2013-04-29 Thread Kristian Høgsberg
Looking at the functionality in the server library, it's clear (in hindsight) that there are two different "things" in there: 1) The IPC API, that is, everything that concerns wl_display, wl_client, wl_resource and 2) a half-hearted attempt at sharing input code and focus logic that leaves a lot of

Plans for 1.2

2013-04-29 Thread Kristian Høgsberg
Hello, So here's my mail with ideas, plans and schedule for 1.2. First off, I realize that 1.1 might have happened a bit fast and I don't remember if I posted about plans for further major release before, so I'll talk about that now. What I'd like to do is to release a new major version every qu

Re: Input and games.

2013-04-29 Thread Rick Yorgason
Todd Showalter writes: > I think all gamepad input should be routed to whatever has focus > or whatever has grabbed input. ...and then... > > I don't think we need a separate event for this, just the normal button > > event is enough. If the display server wants to eat the event, it can > >

Re: Input and games.

2013-04-29 Thread Todd Showalter
On Mon, Apr 29, 2013 at 1:44 PM, Bill Spitzak wrote: > Has anybody thought about pens (ie wacom tablets)? These have 5 degrees of > freedom (most cannot distinguish rotation about the long axis of the pen). > There are also spaceballs with full 6 degrees of freedom. I think pens need to be

Re: [PATCH weston v3 01/13] protocol: add sub-surfaces

2013-04-29 Thread Jason Ekstrand
On Mon, Apr 29, 2013 at 2:11 AM, Pekka Paalanen wrote: > On Sat, 27 Apr 2013 15:18:29 -0500 > Jason Ekstrand wrote: > > > Sorry to spam the list, but I had another idea kicking around my head > > this weekend that I thought was worth sharing. Please note that I > > don't think this is a stopper

Re: Input and games.

2013-04-29 Thread Bill Spitzak
Has anybody thought about pens (ie wacom tablets)? These have 5 degrees of freedom (most cannot distinguish rotation about the long axis of the pen). There are also spaceballs with full 6 degrees of freedom. One idea I remember from Irix was that all the analog controls were 1-dimensional. A m

Re: [PATCH weston v3 06/13] shell: account for the subsurfaces when going fullscreen or maximizing

2013-04-29 Thread Bill Spitzak
Pekka Paalanen wrote: We had some talk about adding a "window region" or something in the past, that would be used for edge snapping and stuff, or was it deemed that input region was enough; I can't recall. That was my proposal, though I think that is not relevant to this discussion. I'm no

Re: [PATCH weston v3 01/13] protocol: add sub-surfaces

2013-04-29 Thread Jason Ekstrand
On Mon, Apr 29, 2013 at 5:16 AM, Pekka Paalanen wrote: > On Mon, 29 Apr 2013 09:40:56 +0200 > David Herrmann wrote: > > > Hi Pekka > > > > On Mon, Apr 29, 2013 at 8:58 AM, Pekka Paalanen > > wrote: > > > On Fri, 26 Apr 2013 11:38:12 -0500 > > > Jason Ekstrand wrote: > > > > > >> On Fri, Apr 26

Re: [PATCH weston v3 07/13] window: implement shm triple-buffering

2013-04-29 Thread Bill Spitzak
Pekka Paalanen wrote: If the server somehow knew that B2 was not in response to the resize, it could composite the old buffers for the main surface with B2 and then free B1. The client for the subsurface could then wait for B1 to be freed before it starts working on the new resize surface. I

Re: Fwd: Input and games.

2013-04-29 Thread Todd Showalter
On Mon, Apr 29, 2013 at 9:57 AM, Bengt Richter wrote: > On 04/27/2013 03:05 AM Todd Showalter wrote: >> stick.x = ((float)raw_x) / (raw_x>= 0) ? 127.0f : 128.0f; >> stick.y = ((float)raw_y) / (raw_y>= 0) ? 127.0f : 128.0f; >> > I'm not an electronics or game equipment insider, but I wonder > why

Re: Input and games.

2013-04-29 Thread Todd Showalter
On Mon, Apr 29, 2013 at 4:15 AM, Pekka Paalanen wrote: > a problem here is that to receive a wl_gamepad::connect event, you > first have to create a wl_gamepad protocol object, which is a bit > counterintuitive. > > A wl_gamepad protocol object should correspond to a single physical > device. So,

Re: Fwd: Input and games.

2013-04-29 Thread Bengt Richter
On 04/27/2013 03:05 AM Todd Showalter wrote: I failed to reply-all before, so I'm forwarding this back to the list. On Fri, Apr 26, 2013 at 5:46 PM, Jason Ekstrand wrote: My first general comment is about floating point. I'm not 100% sure what all went into the design decision to make wl_fix

Spice backend for Weston

2013-04-29 Thread Shvedov Yury
Hello. As part of my course work, I've developed spice backend for Weston (the reference implementation of Wayland compositor). Currently this uses Wayland's pixman-based renderer, and shares rendered frames over spice protocol. With my backend, it is possible to communicate with wayland desktop

Re: [PATCH weston v3 01/13] protocol: add sub-surfaces

2013-04-29 Thread Pekka Paalanen
On Mon, 29 Apr 2013 09:40:56 +0200 David Herrmann wrote: > Hi Pekka > > On Mon, Apr 29, 2013 at 8:58 AM, Pekka Paalanen > wrote: > > On Fri, 26 Apr 2013 11:38:12 -0500 > > Jason Ekstrand wrote: > > > >> On Fri, Apr 26, 2013 at 9:14 AM, Jason Ekstrand > >> wrote: > >> > >> > pq, > >> > > >> > O

Re: Input and games.

2013-04-29 Thread Pekka Paalanen
On Fri, 26 Apr 2013 14:28:30 -0400 Todd Showalter wrote: > On Thu, Apr 25, 2013 at 8:50 AM, Pekka Paalanen > wrote: > > > Todd has already listed what features a standard gamepad or > > controller has. Now someone should start designing the protocol. :-) > > Based on the wl_pointer docs, I

Re: [PATCH weston v3 01/13] protocol: add sub-surfaces

2013-04-29 Thread David Herrmann
Hi On Mon, Apr 29, 2013 at 9:11 AM, Pekka Paalanen wrote: > On Sat, 27 Apr 2013 15:18:29 -0500 > Jason Ekstrand wrote: > >> Sorry to spam the list, but I had another idea kicking around my head >> this weekend that I thought was worth sharing. Please note that I >> don't think this is a stopper

Re: Input and games.

2013-04-29 Thread Pekka Paalanen
On Sat, 27 Apr 2013 15:02:59 -0400 Todd Showalter wrote: > On Sat, Apr 27, 2013 at 10:23 AM, nerdopolis > wrote: > > > What about rumblepads? How would the protocol control the rumblepad > > in some controllers? > > I think rumble is beyond the scope of the proposed gamepad > protocol. Th

Re: [PATCH weston v3 01/13] protocol: add sub-surfaces

2013-04-29 Thread David Herrmann
Hi Pekka On Mon, Apr 29, 2013 at 8:58 AM, Pekka Paalanen wrote: > On Fri, 26 Apr 2013 11:38:12 -0500 > Jason Ekstrand wrote: > >> On Fri, Apr 26, 2013 at 9:14 AM, Jason Ekstrand >> wrote: >> >> > pq, >> > >> > On Fri, Apr 26, 2013 at 7:09 AM, David Herrmann >> > wrote: >> > >> >> Hi Pekka >> >>

Re: [PATCH weston v3 06/13] shell: account for the subsurfaces when going fullscreen or maximizing

2013-04-29 Thread Pekka Paalanen
On Sun, 28 Apr 2013 20:14:50 +0200 Jonas Ådahl wrote: > On Thu, Apr 25, 2013 at 12:57 PM, Pekka Paalanen > wrote: > > From: Giulio Camuffo > > > > We must calculate the bounding box of the surface + subsurfaces set > > and use that when maximizing the window or going fullscreen. > > > > Signed-

Re: [PATCH weston v3 01/13] protocol: add sub-surfaces

2013-04-29 Thread Pekka Paalanen
On Sat, 27 Apr 2013 15:18:29 -0500 Jason Ekstrand wrote: > Sorry to spam the list, but I had another idea kicking around my head > this weekend that I thought was worth sharing. Please note that I > don't think this is a stopper. I just think it's worth throwing out > there and seeing if others