[PATCH weston v2 1/3] compositor: remove redundant geometry dirtying

2013-03-08 Thread Pekka Paalanen
. The configure() hook is only called, if there has been a new wl_surface.attach. Nothing else can change these variables, so this should be enough. Signed-off-by: Pekka Paalanen ppaala...@gmail.com Cc: Ander Conselvan de Oliveira ander.conselvan.de.olive...@intel.com --- Tested only very quickly, I wonder

[PATCH weston v2 2/3] compositor: introduce weston_surface_geometry_dirty()

2013-03-08 Thread Pekka Paalanen
Instead of directly setting the dirty flag on weston_surface geometry, use a function for that. This allows us to hook into geometry dirtying in a following patch. Also add comments to weston_surface fields, whose modification causes transform state to become outdated. Signed-off-by: Pekka

[PATCH weston v2 3/3] compositor, shell: surface transform inheritance

2013-03-08 Thread Pekka Paalanen
weston_surface_set_transform_parent() function. Now, if we moved the popup's parent surface while the popup is open, the popup surface will stick to the parent properly. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- v2: Implement proper dirtying behaviour on top of weston_surface_geometry_dirty

Re: Support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Pekka Paalanen
On Mon, 11 Mar 2013 10:12:08 -0700 Thiago Macieira thiago.macie...@intel.com wrote: On segunda-feira, 11 de março de 2013 17.10.53, Emilio Pozuelo Monfort wrote: The XDG base directory specification[1] says that If $XDG_RUNTIME_DIR is not set applications should fall back to a replacement

Re: [PATCH] xRandr strikes back

2013-03-11 Thread Pekka Paalanen
On Sun, 10 Mar 2013 15:53:30 +0100 Hardening rdp.eff...@gmail.com wrote: This patch adds a wlrandr extension. It is useful to test mode switching. The patch provides the weston-switch-mode utility that can be use quite the same way as xrandr to change graphical modes. For now only the DRM

Re: Support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Pekka Paalanen
On Mon, 11 Mar 2013 18:43:07 +0100 Emilio Pozuelo Monfort poch...@gmail.com wrote: On 03/11/2013 06:12 PM, Thiago Macieira wrote: On segunda-feira, 11 de março de 2013 17.10.53, Emilio Pozuelo Monfort wrote: The XDG base directory specification[1] says that If $XDG_RUNTIME_DIR is not

Re: server side callback

2013-03-12 Thread Pekka Paalanen
On Tue, 12 Mar 2013 11:22:00 +0100 Giulio Camuffo giuliocamu...@gmail.com wrote: 2013/3/12 Jason Ekstrand ja...@jlekstrand.net: I'd love to offer some thoughts on the more general drag-and-drop problem if you want to give a more detailed description. Specifically, I read some of the

Re: server side callback

2013-03-12 Thread Pekka Paalanen
On Tue, 12 Mar 2013 12:00:57 +0100 Giulio Camuffo giuliocamu...@gmail.com wrote: 2013/3/12 Pekka Paalanen ppaala...@gmail.com: On Tue, 12 Mar 2013 11:22:00 +0100 Giulio Camuffo giuliocamu...@gmail.com wrote: 2013/3/12 Jason Ekstrand ja...@jlekstrand.net: I'd love to offer some

Re: surface buffer cardinality and outputs

2013-03-14 Thread Pekka Paalanen
On Wed, 13 Mar 2013 19:52:55 +0100 Sylvain BERTRAND sylw...@legeek.net wrote: The other option would be to ignore those output properties, and the compositor would manage something with an output agnostic buffer. In that case, we would remove the subpixel property from the output to stay

Re: [PATCH wayland v3] protocol: Add minimize/maximize protocol

2013-03-22 Thread Pekka Paalanen
On Wed, 20 Mar 2013 22:06:22 -0600 Scott Moreau ore...@gmail.com wrote: Hi Jason, On Wed, Mar 20, 2013 at 7:56 PM, Jason Ekstrand ja...@jlekstrand.net wrote: There is one more question that I think needs to be answered. And that is: do we handle things in terms of set/unset or in terms

Re: surface buffer cardinality and outputs

2013-03-22 Thread Pekka Paalanen
On Wed, 20 Mar 2013 13:09:48 -0400 Jerome Glisse j.gli...@gmail.com wrote: On Wed, Mar 20, 2013 at 4:32 AM, RenoX reno...@gmail.com wrote: On Tue, Mar 19, 2013 at 11:34 AM, Jason Ekstrand ja...@jlekstrand.net wrote: I'm not sure exactly what I think of all this surface transform

Re: [RFC] add a shutdown event

2013-03-22 Thread Pekka Paalanen
On Mon, 18 Mar 2013 21:43:32 +0100 Hardening rdp.eff...@gmail.com wrote: On 18/03/2013 13:48, Uli Schlachter wrote: Hi, On 18.03.2013 00:30, Hardening wrote: On 17/03/2013 23:59, Sylvain BERTRAND wrote: On Sun, Mar 17, 2013 at 11:32:21PM +0100, Hardening wrote: This patch adds a

Re: surface buffer cardinality and outputs

2013-03-22 Thread Pekka Paalanen
On Fri, 22 Mar 2013 10:41:00 -0400 Jerome Glisse j.gli...@gmail.com wrote: On Fri, Mar 22, 2013 at 6:35 AM, Pekka Paalanen ppaala...@gmail.com wrote: On Wed, 20 Mar 2013 13:09:48 -0400 Jerome Glisse j.gli...@gmail.com wrote: On Wed, Mar 20, 2013 at 4:32 AM, RenoX reno...@gmail.com wrote

Re: surface buffer cardinality and outputs

2013-03-24 Thread Pekka Paalanen
On Sat, 23 Mar 2013 14:42:51 -0400 Jerome Glisse j.gli...@gmail.com wrote: On Fri, Mar 22, 2013 at 5:51 PM, Pekka Paalanen ppaala...@gmail.com wrote: On Fri, 22 Mar 2013 10:41:00 -0400 Jerome Glisse j.gli...@gmail.com wrote: On Fri, Mar 22, 2013 at 6:35 AM, Pekka Paalanen ppaala

Re: [PATCH wayland v3] protocol: Add minimize/maximize protocol

2013-03-24 Thread Pekka Paalanen
On Sat, 23 Mar 2013 15:58:29 -0500 Jason Ekstrand ja...@jlekstrand.net wrote: Scott, I have a few technical comments to make down below. Before I go onto those, I want to make sure we are perfectly clear about the purpose of this discussion. So please read the following through (multiple

Re: surface buffer cardinality and outputs

2013-03-25 Thread Pekka Paalanen
On Mon, 25 Mar 2013 16:38:01 +0100 Renaud Hébert renaud.hebe...@gmail.com wrote: On Fri, 22 Mar 2013 23:51:41 +0200, Pekka Paalanen ppaala...@gmail.com wrote: This introduces temporary glitches, which we work hard to eliminate. Unless you mean window outline moves instead of window content

Re: Compiz is Dead - Beryl Lives Again? Enter - Northfield/Norwood

2013-03-25 Thread Pekka Paalanen
On Mon, 25 Mar 2013 12:51:07 -0600 Scott Moreau ore...@gmail.com wrote: Hey Casey, On Mon, Mar 25, 2013 at 12:46 PM, Casey Dahlin cdah...@redhat.com wrote: On Mon, Mar 25, 2013 at 12:41:59PM -0600, Scott Moreau wrote: The key point to understand is, that this is not a new protocol in its

Re: Helping in reviewing

2013-03-27 Thread Pekka Paalanen
On Tue, 26 Mar 2013 14:09:48 -0700 Thiago Macieira thiago.macie...@intel.com wrote: So whenever you see a change that you think you can provide input on, do so. If you don't feel like saying it's completely fine, say so too. The initial review you provide on simpler things (coding style,

Re: [PATCH weston] Added general signal handling and added sig_abrt

2013-03-27 Thread Pekka Paalanen
Hi, this looks mostly fine, few comments below, and we want a v2 after those. Oh, could you put your real name in the sender field, so we get it in the git history properly? On Wed, 27 Mar 2013 14:59:28 +0100 blackwolf12333 blackwolf12...@gmail.com wrote: --- src/compositor.c | 58

Re: [PATCH weston] Added general signal handling and added sig_abrt

2013-03-27 Thread Pekka Paalanen
On Wed, 27 Mar 2013 16:20:27 +0200 Pekka Paalanen ppaala...@gmail.com wrote: Hi, this looks mostly fine, few comments below, and we want a v2 after those. Oh, could you put your real name in the sender field, so we get it in the git history properly? On Wed, 27 Mar 2013 14:59:28 +0100

Re: [PATCH] tweak rounding on weston-terminal resize

2013-04-04 Thread Pekka Paalanen
On Thu, 4 Apr 2013 11:00:50 -0400 Jason Woofenden ja...@jasonwoof.com wrote: --- clients/terminal.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/clients/terminal.c b/clients/terminal.c index e80e0e5..81edd25 100644 --- a/clients/terminal.c +++

Re: Can't build Weston on Raspbian

2013-04-07 Thread Pekka Paalanen
On Sat, 06 Apr 2013 19:50:09 +0200 Jörn Reder jo...@zyn.de wrote: Hiho, I am new to Wayland and try to build Wayland Weston on Raspbian (following http://wayland.freedesktop.org/raspberrypi.html) but fail on Weston compilation with this error message: --snip-- make[4]: Entering

Re: [PATCH weston] Make backends always specify output repaint time

2013-04-07 Thread Pekka Paalanen
On Sat, 6 Apr 2013 09:43:11 +0200 renoX reno...@gmail.com wrote: Hello, I don't understand why weston or the backends use gettimeofday instead of a monotonic time: doesn't this add work to all the clients to be able to be robust to time going into the past of things like that? Yes, they

Re: [PATCH weston] Make backends always specify output repaint time

2013-04-07 Thread Pekka Paalanen
On Fri, 5 Apr 2013 23:07:11 +0200 Jonas Ådahl jad...@gmail.com wrote: Most backends relies on gettimeofday(2) for output repaint timestamps but this is not a requirement. Before this patch repaints coming from idle_repaint() always used gettimeofday(2) for timestamps. For backends not using

Re: [PATCH weston] Make backends always specify output repaint time

2013-04-09 Thread Pekka Paalanen
On Mon, 8 Apr 2013 17:11:27 -0400 Kristian Høgsberg hoegsb...@gmail.com wrote: On Sun, Apr 07, 2013 at 05:24:51PM +0300, Pekka Paalanen wrote: On Fri, 5 Apr 2013 23:07:11 +0200 Jonas Ådahl jad...@gmail.com wrote: Most backends relies on gettimeofday(2) for output repaint timestamps

Re: [PATCH 01/18] text: Add language and text-direction to protocol

2013-04-10 Thread Pekka Paalanen
On Sun, 07 Apr 2013 21:51:44 -0400 Weng Xuetian wen...@gmail.com wrote: can't this be extended in a way that in a more key value like favor? Input method annouce what value it's interested first, and text_model set the corresponding value upon change. Now, for every field you want to set,

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Pekka Paalanen
On Mon, 15 Apr 2013 09:08:44 -0400 Yichao Yu yyc1...@gmail.com wrote: On Mon, Apr 15, 2013 at 5:00 AM, Pekka Paalanen ppaala...@gmail.com wrote: On Mon, 15 Apr 2013 04:03:43 -0400 Yichao Yu yyc1...@gmail.com wrote: On Mon, Apr 15, 2013 at 3:45 AM, Pekka Paalanen ppaala...@gmail.com

Re: [PATCH] selection: send selection events to all connected clients

2013-04-15 Thread Pekka Paalanen
On Mon, 15 Apr 2013 10:05:44 -0400 Yichao Yu yyc1...@gmail.com wrote: On Mon, Apr 15, 2013 at 9:44 AM, Pekka Paalanen ppaala...@gmail.com wrote: On Mon, 15 Apr 2013 09:08:44 -0400 Yichao Yu yyc1...@gmail.com wrote: On Mon, Apr 15, 2013 at 5:00 AM, Pekka Paalanen ppaala...@gmail.com

Re: [PATCH] selection: send selection events to all connected clients

2013-04-16 Thread Pekka Paalanen
On Mon, 15 Apr 2013 12:32:30 -0700 Bill Spitzak spit...@gmail.com wrote: Pekka Vuorela wrote: What I mean is it breaks the api, the api provided by toolkits to access clipboard will not work at any time, a constraint that doesn't exist in any other systems. Breaks how? On Qt you get

Re: Input and games.

2013-04-19 Thread Pekka Paalanen
Hi Todd, I am going to reply from the Wayland protocol point of view, and what Wayland explicitly can (and must) do for you. This is likely much lower level than what a game programmer would like to use. How SDL or some other higher level library exposes input is a different matter, and I will

Re: [patches] Add a color management framework to weston

2013-04-22 Thread Pekka Paalanen
On Fri, 5 Apr 2013 14:23:50 -0500 Thomas Daede daede...@umn.edu wrote: I am not sure that doing the color conversion in the compositor is the correct place. Some of it has to be there to support vcgt, but for more general conversions, it gets complicated quickly. Color correction is most

Re: [PATCH] evdev: Handle SYN_DROPPED, keep transaction buffer

2013-04-23 Thread Pekka Paalanen
On Sat, 6 Apr 2013 00:27:10 +0200 Martin Minarik minari...@student.fiit.stuba.sk wrote: Each evdev device keeps a key press bitmap, the incoming events are filtered to the following constraints: 1. only notify releases for previously pressed keys 2. only notify presses for previously

Re: Input and games.

2013-04-23 Thread Pekka Paalanen
On Mon, 22 Apr 2013 15:32:50 -0400 Todd Showalter t...@electronjump.com wrote: On Mon, Apr 22, 2013 at 1:40 PM, Pekka Paalanen ppaala...@gmail.com wrote: Gamepads, by contrast, are all mostly the same these days, much like mice. You can find oddball ones like that PC gamepad

Re: [PATCH weston] compositor: add a layer clipping mechanism

2013-04-23 Thread Pekka Paalanen
On Mon, 8 Apr 2013 14:31:53 +0200 Giulio Camuffo giuliocamu...@gmail.com wrote: this adds a mechanism to clip the surfaces belonging to a layer to an arbitrary rect Hi Giulio, I don't have anything against the idea of clipping layers, but the implementation below is puzzling. --- I'm

Re: Pointer lock and warping

2013-04-24 Thread Pekka Paalanen
On Tue, 23 Apr 2013 08:47:59 -0700 Bill Spitzak spit...@gmail.com wrote: On 04/23/2013 12:11 AM, Pekka Paalanen wrote: Here's a lot simpler solution for non-jittery dragging of objects: just hide the pointer cursor, when starting the move. If you still want the pointer cursor visible

Re: Input and games.

2013-04-24 Thread Pekka Paalanen
On Wed, 24 Apr 2013 08:26:19 +0200 David Herrmann dh.herrm...@gmail.com wrote: Hi Todd On Tue, Apr 23, 2013 at 4:12 PM, Todd Showalter t...@electronjump.com wrote: On Tue, Apr 23, 2013 at 7:25 AM, Pekka Paalanen ppaala...@gmail.com wrote: what you describe here is very much a keymap

Re: Pointer lock and warping

2013-04-25 Thread Pekka Paalanen
On Wed, 24 Apr 2013 23:22:50 -0500 Vincent Povirk madewokh...@gmail.com wrote: I think that for any mouse input filtering system to work correctly (including pq's proposal), a client needs to inform the compositor when ending the grab of the last event that it was interested in (normally a

[PATCH weston v3 00/13] Sub-surfaces v3

2013-04-25 Thread Pekka Paalanen
when clicking on a subsurface shell: account for the subsurfaces when going fullscreen or maximizing Pekka Paalanen (11): protocol: add sub-surfaces compositor: introduce sub-surfaces tests: add sub-surface protocol tests shell: keyboard focus and restacking fixes for sub-surfaces

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

2013-04-25 Thread Pekka Paalanen
From: Giulio Camuffo giuliocamu...@gmail.com We must calculate the bounding box of the surface + subsurfaces set and use that when maximizing the window or going fullscreen. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- src/shell.c | 89

[PATCH weston v3 08/13] window: create sub-surfaces

2013-04-25 Thread Pekka Paalanen
, and find_widget. Window maintains a list of sub-surfaces in top-first order. Add a client settable default commit mode, and toggle the mode when resizing to guarantee in-sync updates of a window and its sub-surfaces. Changes in v3: - replaced set_commit_mode with set_sync and set_desync Signed-off-by: Pekka

[PATCH weston v3 09/13] window: implement per-surface redraws

2013-04-25 Thread Pekka Paalanen
animating the GL sub-surface. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- clients/window.c | 88 +++- 1 file changed, 61 insertions(+), 27 deletions(-) diff --git a/clients/window.c b/clients/window.c index 30bb71e..9bcf7ff 100644

[PATCH weston v3 10/13] clients: add subsurfaces demo

2013-04-25 Thread Pekka Paalanen
a widget may lie on a different wl_surface (sub-surface) than the window. Changes in v3: - replace set_commit_mode with set_sync and set_desync Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- clients/.gitignore| 1 + clients/Makefile.am | 8 + clients/subsurfaces.c | 792

[PATCH weston v3 11/13] window: prevent EGL sub-surface deadlock

2013-04-25 Thread Pekka Paalanen
. Therefore this patch is not enough for threaded toytoolkit applications. Luckily those do not exist yet. When eglSwapInterval() gets implemented, this patch should be reverted. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- clients/window.c | 32 1 file changed

[PATCH weston v3 13/13] window: add DBG code for leaf management and redraws

2013-04-25 Thread Pekka Paalanen
Aids for debugging and inspecting the algorithms. Signed-off-by: Pekka Paalanen ppaala...@gmail.com --- This patch is not essential, but probably useful if anyone needs to debug that stuff. --- clients/window.c | 94 ++-- 1 file changed, 91

Re: Input and games.

2013-04-25 Thread Pekka Paalanen
On Wed, 24 Apr 2013 10:03:35 -0500 Jason Ekstrand ja...@jlekstrand.net wrote: On Wed, Apr 24, 2013 at 9:41 AM, Todd Showalter t...@electronjump.comwrote: On Wed, Apr 24, 2013 at 2:26 AM, David Herrmann dh.herrm...@gmail.com wrote: I'm currently looking into an interface that provides

Re: [UPDATED PATCH wayland] protocol: Add a request and event to identify the visible area for a surface

2013-04-25 Thread Pekka Paalanen
Hi Rob, nice to get back to this. :-) On Thu, 18 Apr 2013 13:17:47 +0100 Rob Bradford robert.bradf...@intel.com wrote: From: Rob Bradford r...@linux.intel.com Add a probe_area request to the wl_shell_surface interface along with a visible_area event to communicate the result of the probe.

Re: [UPDATED PATCH weston 1/2] shell: Implement the probe_area request on the shell surface

2013-04-25 Thread Pekka Paalanen
firing on the surface (review from Kristian) v3: Use weston_surface_{to,from}_global (review from Pekka Paalanen) v4: Take into consideration the output position (review from Pekka) --- src/shell.c | 83 - 1 file changed, 82 insertions

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

2013-04-26 Thread Pekka Paalanen
On Thu, 25 Apr 2013 12:34:13 -0700 Bill Spitzak spit...@gmail.com wrote: Pekka Paalanen wrote: Triple-buffering is especially for sub-surfaces, where the compositor may have one wl_buffer busy on screen, and another wl_buffer busy in the sub-surface cached state due to the synchronized

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

2013-04-26 Thread Pekka Paalanen
On Thu, 25 Apr 2013 16:47:15 +0200 David Herrmann dh.herrm...@gmail.com wrote: Hi Pekka On Thu, Apr 25, 2013 at 12:57 PM, Pekka Paalanen ppaala...@gmail.com wrote: Add protocol for sub-surfaces, wl_subcompositor as the global interface, and wl_subsurface as the per-surface interface

Re: [PATCH weston 2/6] weston: Allow relative paths for modules

2013-04-26 Thread Pekka Paalanen
On Tue, 23 Apr 2013 17:16:48 +0200 John Kåre Alsaker john.kare.alsa...@gmail.com wrote: You should drop the code changes since they already allow relative paths. You just changed it to only allow base filenames. Paths relative to what? Looks like there is a difference. On Tue, Apr 23, 2013

Re: [PATCH weston 3/6] weston-test: Get the test client path from args

2013-04-26 Thread Pekka Paalanen
On Tue, 23 Apr 2013 14:54:47 +0200 Quentin Glidic sardemff7+wayl...@sardemff7.net wrote: From: Quentin Glidic sardemff7+...@sardemff7.net Signed-off-by: Quentin Glidic sardemff7+...@sardemff7.net --- tests/weston-test.c| 18 -- tests/weston-tests-env | 3 ++- 2 files

Re: [PATCH weston 4/6] shared/option-parser: Add string list options

2013-04-26 Thread Pekka Paalanen
On Tue, 23 Apr 2013 14:54:48 +0200 Quentin Glidic sardemff7+wayl...@sardemff7.net wrote: From: Quentin Glidic sardemff7+...@sardemff7.net Signed-off-by: Quentin Glidic sardemff7+...@sardemff7.net --- man/weston.man | 6 +++--- shared/config-parser.h | 1 +

Re: [PATCH weston 5/6] tests: Drop weston-tests-env

2013-04-26 Thread Pekka Paalanen
On Tue, 23 Apr 2013 14:54:49 +0200 Quentin Glidic sardemff7+wayl...@sardemff7.net wrote: From: Quentin Glidic sardemff7+...@sardemff7.net Signed-off-by: Quentin Glidic sardemff7+...@sardemff7.net Any explanation why doing this? --- tests/.gitignore | 10 +++--

Re: [PATCH weston 5/6] tests: Drop weston-tests-env

2013-04-26 Thread Pekka Paalanen
On Fri, 26 Apr 2013 12:29:52 +0200 Quentin Glidic sardemff7+wayl...@sardemff7.net wrote: On 26/04/2013 11:44, Pekka Paalanen wrote: Any explanation why doing this? [snip] Dropping automake 1.11 support should be a separate patch. It is an important change that deserves special attention

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

2013-04-26 Thread Pekka Paalanen
On Fri, 26 Apr 2013 12:02:52 +0300 Pekka Paalanen ppaala...@gmail.com wrote: On Thu, 25 Apr 2013 16:47:15 +0200 David Herrmann dh.herrm...@gmail.com wrote: Hi Pekka On Thu, Apr 25, 2013 at 12:57 PM, Pekka Paalanen ppaala...@gmail.com wrote: Add protocol for sub-surfaces

Additional pixel formats for wl_shm

2013-04-26 Thread Pekka Paalanen
Hi Kristian, I'm working on Raspberry Pi, where the VideoCore can deal directly with a large number of pixel formats. However, wl_shm only exposes ARGB and XRGB 32-bit per pixel formats, which on such tiny devices are very wasteful. Would it be acceptable to add more formats to the wl_shm

Re: Additional pixel formats for wl_shm

2013-04-26 Thread Pekka Paalanen
On Fri, 26 Apr 2013 09:09:28 -0500 Jason Ekstrand ja...@jlekstrand.net wrote: pq, On Fri, Apr 26, 2013 at 8:13 AM, Pekka Paalanen ppaala...@gmail.com wrote: Hi Kristian, I'm working on Raspberry Pi, where the VideoCore can deal directly with a large number of pixel formats. However

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

2013-04-28 Thread Pekka Paalanen
On Sat, 27 Apr 2013 18:41:48 -0700 Bill Spitzak spit...@gmail.com wrote: On 04/27/2013 05:21 AM, Pekka Paalanen wrote: 1. There is a window with a main surface and a sub-surface is in desync mode. Sub-surface is running independently. Sub-surface has buffer B1 reserved by the server

Re: Buffer Filters

2013-04-28 Thread Pekka Paalanen
On Fri, 26 Apr 2013 09:48:19 -0500 Jason Ekstrand ja...@jlekstrand.net wrote: Wayland Devs, What follows is an idea that's been kicking around my head for a little while now due to a discussion on the list a month or so ago. The basic idea is to add an interface that provides some

Re: Additional pixel formats for wl_shm

2013-04-28 Thread Pekka Paalanen
On Sun, 28 Apr 2013 15:48:09 +0900 Cedric BAIL cedric.b...@free.fr wrote: Hello, On Fri, Apr 26, 2013 at 10:13 PM, Pekka Paalanen ppaala...@gmail.com wrote: I'm working on Raspberry Pi, where the VideoCore can deal directly with a large number of pixel formats. However, wl_shm only

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

2013-04-29 Thread Pekka Paalanen
On Fri, 26 Apr 2013 11:38:12 -0500 Jason Ekstrand ja...@jlekstrand.net wrote: On Fri, Apr 26, 2013 at 9:14 AM, Jason Ekstrand ja...@jlekstrand.netwrote: pq, On Fri, Apr 26, 2013 at 7:09 AM, David Herrmann dh.herrm...@gmail.comwrote: Hi Pekka ... How's this?

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 jad...@gmail.com wrote: On Thu, Apr 25, 2013 at 12:57 PM, Pekka Paalanen ppaala...@gmail.com wrote: From: Giulio Camuffo giuliocamu...@gmail.com We must calculate the bounding box of the surface + subsurfaces set and use that when

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 dh.herrm...@gmail.com wrote: Hi Pekka On Mon, Apr 29, 2013 at 8:58 AM, Pekka Paalanen ppaala...@gmail.com wrote: On Fri, 26 Apr 2013 11:38:12 -0500 Jason Ekstrand ja...@jlekstrand.net wrote: On Fri, Apr 26, 2013 at 9:14 AM, Jason

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

2013-04-30 Thread Pekka Paalanen
On Mon, 29 Apr 2013 17:10:25 -0700 Sinclair Yeh sinclair@intel.com wrote: On Mon, Apr 22, 2013 at 12:48:43PM +0300, Pekka Paalanen wrote: On Fri, 19 Apr 2013 17:49:12 + Yeh, Sinclair sinclair@intel.com wrote: wl_egl_window_destory() distroys the window handle

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

2013-04-30 Thread Pekka Paalanen
On Mon, 29 Apr 2013 10:24:54 -0700 Bill Spitzak spit...@gmail.com wrote: 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

Re: Input and games.

2013-04-30 Thread Pekka Paalanen
, 2013 at 4:15 AM, Pekka Paalanen ppaala...@gmail.com 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

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

2013-04-30 Thread Pekka Paalanen
On Mon, 29 Apr 2013 21:23:43 -0400 Kristian Høgsberg hoegsb...@gmail.com wrote: 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,

Re: [patches] Add a color management framework to weston

2013-05-02 Thread Pekka Paalanen
On Wed, 1 May 2013 17:03:30 -0400 Kristian Høgsberg hoegsb...@gmail.com wrote: On Mon, Apr 22, 2013 at 01:30:28PM +0300, Pekka Paalanen wrote: On Fri, 5 Apr 2013 14:23:50 -0500 Thomas Daede daede...@umn.edu wrote: I am not sure that doing the color conversion in the compositor

Re: Input and games.

2013-05-02 Thread Pekka Paalanen
On Tue, 30 Apr 2013 10:30:33 -0500 Jason Ekstrand ja...@jlekstrand.net wrote: On Tue, Apr 30, 2013 at 10:25 AM, Todd Showalter t...@electronjump.comwrote: On Tue, Apr 30, 2013 at 9:26 AM, Pekka Paalanen ppaala...@gmail.com wrote: unfortunately that is not how Wayland works at all

Re: [RFC] wl_surface scale and crop protocol extension

2013-05-02 Thread Pekka Paalanen
On Tue, 30 Apr 2013 17:08:49 -0400 Matthias Clasen matthias.cla...@gmail.com wrote: On Tue, Apr 30, 2013 at 8:33 AM, Pekka Paalanen ppaala...@gmail.com wrote: Hi all, below is my first draft for a wl_surface scaling and cropping extension. I called it wl_scaler in the lack of a better

Re: [RFC] wl_surface scale and crop protocol extension

2013-05-02 Thread Pekka Paalanen
size changes. Destroying the surface_scaler returns the original 1:1 mapping. On Tue, Apr 30, 2013 at 2:33 PM, Pekka Paalanen ppaala...@gmail.com wrote: Hi all, below is my first draft for a wl_surface scaling and cropping extension. I called it wl_scaler in the lack of a better name

Re: [RFC] wl_surface scale and crop protocol extension

2013-05-02 Thread Pekka Paalanen
On Tue, 30 Apr 2013 14:21:41 -0700 Bill Spitzak spit...@gmail.com wrote: scalar is often used to identify a single number in linear algebra. A different name would be better. transform might work but that also would cover the subsurface and surface transforms, perhaps that can be moved to

Re: [RFC] wl_surface scale and crop protocol extension

2013-05-02 Thread Pekka Paalanen
On Tue, 30 Apr 2013 15:49:16 -0500 Jason Ekstrand ja...@jlekstrand.net wrote: On Tue, Apr 30, 2013 at 2:29 PM, Bill Spitzak spit...@gmail.com wrote: I'm not clear on why Wayland's design requires adding 2 dummy objects to the api (in this case the wl_scalar factory and the per-surface

Re: Input and games.

2013-05-03 Thread Pekka Paalanen
On Thu, 2 May 2013 18:18:27 + (UTC) Rick Yorgason r...@firefang.com wrote: Pekka Paalanen ppaalanen@... writes: Yes, I agree. Even if BP was not a nesting compositor, making the home button minimize the active window would usually get you to the BP right under it. The task

Re: Input and games.

2013-05-03 Thread Pekka Paalanen
On Thu, 2 May 2013 19:28:41 +0100 Daniel Stone dan...@fooishbar.org wrote: Hi, On 2 May 2013 10:44, Pekka Paalanen ppaala...@gmail.com wrote: On Tue, 30 Apr 2013 09:14:48 -0400 Todd Showalter t...@electronjump.com wrote: The question is, is a gamepad an object, or is a *set

Re: Input and games.

2013-05-03 Thread Pekka Paalanen
On Thu, 2 May 2013 10:46:56 -0400 Todd Showalter t...@electronjump.com wrote: On Thu, May 2, 2013 at 5:44 AM, Pekka Paalanen ppaala...@gmail.com wrote: On Tue, 30 Apr 2013 09:14:48 -0400 Todd Showalter t...@electronjump.com wrote: ... The question is, is a gamepad an object

Re: [RFC] wl_surface scale and crop protocol extension

2013-05-03 Thread Pekka Paalanen
On Thu, 02 May 2013 12:16:23 -0700 Bill Spitzak spit...@gmail.com wrote: Jason Ekstrand wrote: Agreed. Sending transform matrices or the like has HUGE rounding problems. Particularly when we're using wl_fixed which is 24.8. Other methods would require adding rounding conventions etc.

Re: [RFC] wl_surface scale and crop protocol extension

2013-05-03 Thread Pekka Paalanen
On Thu, 2 May 2013 09:42:42 -0500 Jason Ekstrand ja...@jlekstrand.net wrote: On Thu, May 2, 2013 at 5:51 AM, Pekka Paalanen ppaala...@gmail.com wrote: On Tue, 30 Apr 2013 10:54:25 -0500 Jason Ekstrand ja...@jlekstrand.net wrote: ... On Tue, Apr 30, 2013 at 2:33 PM, Pekka Paalanen

Re: [RFC] wl_surface scale and crop protocol extension

2013-05-03 Thread Pekka Paalanen
On Thu, 2 May 2013 14:43:38 -0500 Jason Ekstrand ja...@jlekstrand.net wrote: On Thu, May 2, 2013 at 1:22 PM, Daniel Stone dan...@fooishbar.org wrote: Hi, On 2 May 2013 15:42, Jason Ekstrand ja...@jlekstrand.net wrote: Ok, I see it now. Sorry, but I missed it on my first

Re: Input and games.

2013-05-03 Thread Pekka Paalanen
On Fri, 3 May 2013 03:51:33 -0400 Todd Showalter t...@electronjump.com wrote: On Fri, May 3, 2013 at 3:34 AM, Pekka Paalanen ppaala...@gmail.com wrote: Yup. Whatever we do, we get it wrong for someone, so there needs to be a GUI to fix it. But should that GUI be all games' burden

Re: [PATCH] Add initial color management framework code

2013-05-03 Thread Pekka Paalanen
On Thu, 2 May 2013 15:16:09 +0100 Richard Hughes hughsi...@gmail.com wrote: ICC profiles can now be specified in weston.ini for each output, or a CMS implementation can optionally loaded from a pluggable module. --- configure.ac | 7 ++ src/Makefile.am | 13 +++-

Re: Input and games.

2013-05-03 Thread Pekka Paalanen
On Fri, 3 May 2013 09:12:20 -0400 Todd Showalter t...@electronjump.com wrote: On Fri, May 3, 2013 at 6:42 AM, Pekka Paalanen ppaala...@gmail.com wrote: Sure, the heuristics can cover a lot, but there is still the mad case, and also the initial setup (system started with 3 new gamepads

Re: [RFC] wl_surface scale and crop protocol extension

2013-05-05 Thread Pekka Paalanen
On Fri, 03 May 2013 12:11:17 -0700 Bill Spitzak spit...@gmail.com wrote: Pekka Paalanen wrote: What chip do you have in mind, that can do arbitrary matrix-based transforms during an overlay scanout? That just means the surface cannot use the overlay, or the compositor has to use

Documentation cross-reference (Re: [RFC] wl_surface scale and crop protocol extension)

2013-05-05 Thread Pekka Paalanen
On Fri, 3 May 2013 19:16:41 +0100 Daniel Stone dan...@fooishbar.org wrote: On 3 May 2013 18:50, Bill Spitzak spit...@gmail.com wrote: Currently one of the things you can do to a wl_surface is that you can find the wl_shell object and ask it to create a wl_shell_surface object given a

Re: Input and games.

2013-05-05 Thread Pekka Paalanen
On Fri, 3 May 2013 17:42:20 +0100 Daniel Stone dan...@fooishbar.org wrote: Hi, On 3 May 2013 08:17, Pekka Paalanen ppaala...@gmail.com wrote: On Thu, 2 May 2013 19:28:41 +0100 Daniel Stone dan...@fooishbar.org wrote: There's one crucial difference though, and one that's going to come up

Re: Licence for RPi .pc files ?

2013-05-06 Thread Pekka Paalanen
On Sun, 5 May 2013 22:06:49 +0200 Tom Gundersen t...@jklm.no wrote: Hi Pekka, I'm trying to make Weston work nicely on Raspberry Pi under ArchLinux ARM, and was pointed to Collabora's pkg-config files [0] from the Wayland wiki [1]. I couldn't find any licencing information, so I thought

Axis events to keyboard focus (Re: Input and games.)

2013-05-06 Thread Pekka Paalanen
On Sun, 5 May 2013 15:27:54 -0400 Todd Showalter t...@electronjump.com wrote: On Sun, May 5, 2013 at 12:55 PM, Pekka Paalanen ppaala...@gmail.com wrote: In a wl_seat, we have one kbd focus, and one pointer focus. These two are unrelated, except sometimes some pointer action may change

Re: Input and games.

2013-05-06 Thread Pekka Paalanen
On Sun, 5 May 2013 15:27:54 -0400 Todd Showalter t...@electronjump.com wrote: On Sun, May 5, 2013 at 12:55 PM, Pekka Paalanen ppaala...@gmail.com wrote: I was thinking of adding a third one: the gamepad focus. It could be independent from kbd and pointer foci, or maybe it is assigned

Gamepad focus model (Re: Input and games.)

2013-05-06 Thread Pekka Paalanen
On Mon, 6 May 2013 11:01:28 +0100 Daniel Stone dan...@fooishbar.org wrote: Hi, On 5 May 2013 17:55, Pekka Paalanen ppaala...@gmail.com wrote: On Fri, 3 May 2013 17:42:20 +0100 Daniel Stone dan...@fooishbar.org wrote: tl;dr: wl_seat has a very specific meaning of a set of devices

Re: Axis events to keyboard focus (Re: Input and games.)

2013-05-07 Thread Pekka Paalanen
input and a part of a pointer device. All pointer device inputs are relative, and multiple physical devices can be sensibly aggregated into a single logical device interface. Joysticks are not relative, and cannot be aggregated. Thanks, pq Am 06.05.2013 08:40, schrieb Pekka Paalanen: On Sun

Re: Axis events to keyboard focus (Re: Input and games.)

2013-05-07 Thread Pekka Paalanen
On Mon, 06 May 2013 11:07:03 -0700 Bill Spitzak spit...@gmail.com wrote: Pekka Paalanen wrote: sending pointer axis events (i.e. scroll wheel) to the window with the keyboard focus is... unexplored. If it is ok to send axis events outside of a wl_pointer.enter/leave pair, then it's

Re: Gamepad focus model (Re: Input and games.)

2013-05-07 Thread Pekka Paalanen
Hi Todd, Daniel nicely replied to the most important comments, here are a few more. On Mon, 6 May 2013 09:48:47 -0400 Todd Showalter t...@electronjump.com wrote: On Mon, May 6, 2013 at 8:36 AM, Pekka Paalanen ppaala...@gmail.com wrote: Into wl_seat, we should add a capability bit

Re: Gamepad focus model (Re: Input and games.)

2013-05-07 Thread Pekka Paalanen
On Tue, 7 May 2013 11:14:08 -0400 Todd Showalter t...@electronjump.com wrote: On Tue, May 7, 2013 at 3:23 AM, Pekka Paalanen ppaala...@gmail.com wrote: Yeah, like Daniel said, there is no concept of a return value. When a client creates a new object, the server can only either agree

Re: Axis events to keyboard focus (Re: Input and games.)

2013-05-08 Thread Pekka Paalanen
On Tue, 07 May 2013 12:14:56 -0700 Bill Spitzak spit...@gmail.com wrote: Pekka Paalanen wrote: If you want to move a pointer with a gamepad in a game, then implement that whole pointer thing in the game. Don't screw up the protocol for it. I was under the impression that a seat can

Re: Gamepad focus model (Re: Input and games.)

2013-05-10 Thread Pekka Paalanen
On Thu, 9 May 2013 16:44:09 +1000 Peter Hutterer peter.hutte...@who-t.net wrote: On Mon, May 06, 2013 at 03:36:20PM +0300, Pekka Paalanen wrote: [...] I had a private chat with Daniel, and we came to an understanding, which I try to describe below. The interface names below are more like

Re: Additional pixel formats for wl_shm

2013-05-10 Thread Pekka Paalanen
On Wed, 8 May 2013 12:22:10 -0400 Kristian Høgsberg hoegsb...@gmail.com wrote: On Wed, May 08, 2013 at 10:29:21AM +0300, Pekka Paalanen wrote: On Thu, 2 May 2013 10:23:04 +0300 Pekka Paalanen pekka.paala...@collabora.co.uk wrote: On Wed, 1 May 2013 21:38:48 -0400 Kristian Høgsberg

Re: Gamepad focus model (Re: Input and games.)

2013-05-10 Thread Pekka Paalanen
On Thu, 9 May 2013 10:49:03 + (UTC) Rick Yorgason r...@firefang.com wrote: Pekka Paalanen ppaalanen@... writes: From the game's point of view, it will need to iterate over all wl_seats. For each seat with the gamepad capability bit set, create a wl_gamepad_manager, receive all

Re: Gamepad focus model (Re: Input and games.)

2013-05-13 Thread Pekka Paalanen
On Mon, 13 May 2013 09:12:03 +1000 Peter Hutterer peter.hutte...@who-t.net wrote: On Fri, May 10, 2013 at 10:41:45AM +0300, Pekka Paalanen wrote: On Thu, 9 May 2013 16:44:09 +1000 Peter Hutterer peter.hutte...@who-t.net wrote: On Mon, May 06, 2013 at 03:36:20PM +0300, Pekka Paalanen

Re: [PATCH weston v4 1/4] shell: Use relative layers for lock/unlock

2013-05-13 Thread Pekka Paalanen
On Sun, 12 May 2013 11:09:32 +0200 Quentin Glidic sardemff7+wayl...@sardemff7.net wrote: From: Quentin Glidic sardemff7+...@sardemff7.net The commit message here should state why this change is needed, and what it does on a high level. I can guess, but I'd like it written out also for

Re: [PATCH 1/2] protocol: Allow versioned message arguments

2013-05-13 Thread Pekka Paalanen
On Mon, 13 May 2013 10:23:44 +0200 Alexander Larsson al...@redhat.com wrote: On ons, 2013-05-08 at 15:40 -0500, Jason Ekstrand wrote: In short, I think this is far too complex for what it achieves. In the case of scaling factor stuff, you can just do it with a second event. I

<    4   5   6   7   8   9   10   11   12   13   >