protocol questions

2013-03-29 Thread Matthias Clasen
Here are a few questions/observations I had while studying the protocol docs: - The use of serials in events seems a bit inconsistent. Most wl_pointer events have serials, but axis doesn't. wl_keyboard enter/leave events do. wl_data_offer.enter does, but the corresponding leave/motion events don't

[PATCH 21/21] docs: Add details about grabs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Mention implicit grabs, (lack of) explicit grabs, and popup windows. --- doc/Wayland/en_US/Protocol.xml | 8 1 file changed, 8 insertions(+) diff --git a/doc/Wayland/en_US/Protocol.xml b/doc/Wayland/en_US/Protocol.xml index a645409..b94e9ca 100644 --- a/doc/Waylan

[PATCH 20/21] docs: Add details about surfaces

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Mention some of the characteristic differences to X: no global positions, no access to foreign windows. --- doc/Wayland/en_US/Protocol.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/Wayland/en_US/Protocol.xml b/doc/Wayland/en_US/Protocol.xml index 58a5962..a6

[PATCH 19/21] docs: Improve wl_region protocol docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Just cosmetic changes, a few missing periods, and ID was not capitalized. --- protocol/wayland.xml | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 34a1bbf..2a27b1b 100644 --- a/protocol/waylan

[PATCH 18/21] docs: Improve the wl_output protocol docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Some descriptions were missing. --- protocol/wayland.xml | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index a53cb71..34a1bbf 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland

[PATCH 17/21] docs: Improve wl_touch protocol docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Some descriptions were missing here. --- protocol/wayland.xml | 36 +++- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 52bc98f..a53cb71 100644 --- a/protocol/wayland.xml +++ b

[PATCH 16/21] docs: Improve wl_keyboard protocol docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Some descriptions were missing here. --- protocol/wayland.xml | 25 +++-- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 87e3d5f..52bc98f 100644 --- a/protocol/wayland.xml +++ b/protocol/w

[PATCH 15/21] docs: Improve wl_pointer protocol docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Some descriptions were missing here. --- protocol/wayland.xml | 43 +-- 1 file changed, 33 insertions(+), 10 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 442862d..87e3d5f 100644 --- a/protocol/wayland.x

[PATCH 14/21] docs: Improve the wl_seat protocol docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Expand the main description and tell if requests don't have an effect. --- protocol/wayland.xml | 35 ++- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 3e674f3..442862d 10064

[PATCH 13/21] docs: Improve wl_surface protocol docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Use NULL consistently. And add some more information in a few places. --- protocol/wayland.xml | 123 +-- 1 file changed, 69 insertions(+), 54 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index a3599f

[PATCH 12/21] docs: Improve wl_shell/wl_shell_surface docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Add missing summaries, expand descriptions. --- protocol/wayland.xml | 233 --- 1 file changed, 149 insertions(+), 84 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 2417c0e..a3599f0 100644 --- a/p

[PATCH 11/21] docs: Improve the wl_data_* procol docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Add a few missing summaries and descriptions, spell out file descriptor, use hyphens in drag-and-drop, don't use hyphens in 'mime type', and reword a few things. --- protocol/wayland.xml | 95 +++- 1 file changed, 65 insertion

[PATCH 10/21] docs: Improve wl_shm and wl_shm_pool protocol docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Reword some paragraphs, and spell out 'file descriptor'. --- protocol/wayland.xml | 73 +++- 1 file changed, 49 insertions(+), 24 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index cc009eb..31d7ce8 10

[PATCH 09/21] docs: Improve wl_callback protocol docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Add some information about wl_callback and its done event. --- protocol/wayland.xml | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index ad72fd1..cc009eb 100644 --- a/protocol/wayland.xml +++ b/protoco

[PATCH 08/21] docs: Improve the wl_registry protocol docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Reword a few things, and add some details. --- protocol/wayland.xml | 44 ++-- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 8587b8f..ad72fd1 100644 --- a/protocol/wa

[PATCH 07/21] docs: Improve wl_display protocol docs

2013-03-29 Thread matthias . clasen
From: Matthias Clasen This adds a bit of information about in-order event delivery, removes extraneous formatting, and adds a missing period. --- protocol/wayland.xml | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml

[PATCH 06/21] docs: Consistency fixes

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Say 'object ID' throughout. --- doc/Wayland/en_US/Protocol.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/Wayland/en_US/Protocol.xml b/doc/Wayland/en_US/Protocol.xml index 9bc8232..58a5962 100644 --- a/doc/Wayland/en_US/Protocol.xml +++ b/

[PATCH 05/21] doc: Improve various sections of the documentation

2013-03-29 Thread matthias . clasen
From: Matthias Clasen --- doc/Wayland/en_US/Protocol.xml | 71 ++ 1 file changed, 31 insertions(+), 40 deletions(-) diff --git a/doc/Wayland/en_US/Protocol.xml b/doc/Wayland/en_US/Protocol.xml index 955b054..9bc8232 100644 --- a/doc/Wayland/en_US/Protocol

[PATCH 04/21] docs: Improve the 'Connect time' section

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Turn the bullet-point list into complete sentences. --- doc/Wayland/en_US/Protocol.xml | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/doc/Wayland/en_US/Protocol.xml b/doc/Wayland/en_US/Protocol.xml index cab68a8..955b054 100644 ---

[PATCH 03/21] docs: Improve the 'Types of Compositors' section

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Turn the bullet-point lists into full paragraphs. --- doc/Wayland/en_US/Compositors.xml | 119 +++--- 1 file changed, 46 insertions(+), 73 deletions(-) diff --git a/doc/Wayland/en_US/Compositors.xml b/doc/Wayland/en_US/Compositors.xml index

[PATCH 02/21] docs: Slight rewording

2013-03-29 Thread matthias . clasen
From: Matthias Clasen The Wayland Protocol -> Wayland Protocol Overview, to align better with the subsequent Wayland Protocol Specification. --- doc/Wayland/en_US/Protocol.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Wayland/en_US/Protocol.xml b/doc/Wayland/en_US/P

[PATCH 01/21] docs: Reorder some sections

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Move the 'Types of Compositors' section right after the Overview, and move the 'Client API' part after the protocol spec. --- doc/Wayland/en_US/Wayland.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Wayland/en_US/Wayland.xml b/doc/Wayland/en

[PATCH 00/21] Documentation improvements

2013-03-29 Thread matthias . clasen
From: Matthias Clasen Hi, I spent some time going over the documentation, trying to fill gaps in my understanding - and in the documentation. Here are the resulting patches. Matthias Clasen (21): docs: Reorder some sections docs: Slight rewording docs: Improve the 'Types of Compositors' s

[PATCH weston] evdev: Mouse speed and acceleration

2013-03-29 Thread Martin Minarik
Acceleration: After examining, I don't like the X acceleration approach. X employs a so called velocity approximation (?) algorithm. It is quite a complex way to get an approximation of a simple thing, the velocity, when we can compute the velocity directly. Configuring: Please, tune the values in

Re: Porting glmark2?

2013-03-29 Thread darxus
On 03/29, Rafał Mielniczuk wrote: > I did some basic porting, but benchmark shows contant 60FPS. > It looks quite nice, though ;) > > I put the code on github > https://github.com/rafalmiel/glmark2-wl Awesome, thanks. Can you submit it upstream? I wonder if the 60fps thing is as it should be.

Re: Porting glmark2?

2013-03-29 Thread Rafał Mielniczuk
On 29.03.2013 17:49, dar...@chaosreigns.com wrote: glmark2 is an open source OpenGL ES 2 bencharmk. Seems like a good fit for wayland. It was recently ported to mir. Seems like those changes might be a useful reference. I think mostly this: http://bazaar.launchpad.net/~glmark2-dev/glmark2/tru

Re: [PATCH weston] compositor: add WESTON_COMPOSITOR_OFFSCREEN state

2013-03-29 Thread Kristian Høgsberg
On Fri, Mar 29, 2013 at 01:01:56PM +0100, Philipp Brüschweiler wrote: > This state is used when the user switches the vt. It turns of rendering > and frame events, but doesn't set the DPMS state to off. > > As a part of this change, also turn off the idle timer when entering > the SLEEPING or OFFS

Re: [RFC] protocol: Introduce logical surface protocol

2013-03-29 Thread Daniel Stone
Hi Jason, On 29 March 2013 16:55, Jason Ekstrand wrote: > > A few quick thoughts, more to come. First, your get_export_surface has > two new_id arguments. I don't think that's intended. > Oops, thanks! > Second, we currently have no way for a client to retrieve data from a > buffer. This will b

Re: [RFC] protocol: Introduce logical surface protocol

2013-03-29 Thread Jason Ekstrand
Daniel, A few quick thoughts, more to come. First, your get_export_surface has two new_id arguments. I don't think that's intended. Second, we currently have no way for a client to retrieve data from a buffer. This will be a problem for client-side compositing. --Jason Ekstrand On Mar 29, 2013 11

Porting glmark2?

2013-03-29 Thread darxus
glmark2 is an open source OpenGL ES 2 bencharmk. Seems like a good fit for wayland. It was recently ported to mir. Seems like those changes might be a useful reference. I think mostly this: http://bazaar.launchpad.net/~glmark2-dev/glmark2/trunk/revision/265 Upstream repo: https://code.launchp

Re: [RFC] protocol: Introduce logical surface protocol

2013-03-29 Thread Daniel Stone
Hi Jonas, On 17 March 2013 09:13, Jonas Ådahl wrote: > A logical surface is a special kind of surface that never gets its own > buffer attached, or opaque region set etc. It is obtained by using a > surface handle that can be shared in some way between clients. A handle > is a server wide unique

[PATCH weston] compositor: add WESTON_COMPOSITOR_OFFSCREEN state

2013-03-29 Thread Philipp Brüschweiler
This state is used when the user switches the vt. It turns of rendering and frame events, but doesn't set the DPMS state to off. As a part of this change, also turn off the idle timer when entering the SLEEPING or OFFSCREEN states, which fixes https://bugs.freedesktop.org/show_bug.cgi?id=61910 (rp