Re: [PATCH weston 1/2] toytoolkit: avoid unnecessary redraws when focus changes

2014-02-12 Thread Emilio Pozuelo Monfort
On 12/02/14 01:04, Bryce W. Harrington wrote: (For full disclosure - On one test run against master, I noticed the flower changed shape every time it received or lost focus, however I was never able to reproduce that behavior even after doing clean rebuilds.) That's precisely what made me find

Re: [PATCH weston 1/2] toytoolkit: avoid unnecessary redraws when focus changes

2014-02-12 Thread Jasper St. Pierre
What reschedules the frame being drawn when focused is gained / lost, then? On Wed, Feb 12, 2014 at 3:08 AM, Emilio Pozuelo Monfort poch...@gmail.comwrote: On 12/02/14 01:04, Bryce W. Harrington wrote: (For full disclosure - On one test run against master, I noticed the flower changed

Re: [RFC v2] Wayland presentation extension (video protocol)

2014-02-12 Thread Bill Spitzak
I think I was wrong to say the display time would always be = to the time the client specifies. It would be rounded just like you are saying, the nearest start time would be rounded to the nearest output frame start time and thus could be earlier. I tend to think of a frame as covering a

Re: [PATCH weston 1/2] toytoolkit: avoid unnecessary redraws when focus changes

2014-02-12 Thread Bryce W. Harrington
On Wed, Feb 12, 2014 at 09:08:51AM +0100, Emilio Pozuelo Monfort wrote: On 12/02/14 01:04, Bryce W. Harrington wrote: (For full disclosure - On one test run against master, I noticed the flower changed shape every time it received or lost focus, however I was never able to reproduce that

[PATCH libinput 5/5] Add seat wide slot to touch events

2014-02-12 Thread Jonas Ådahl
Since a Wayland compositor have to represent all touch devices of a seat as one virtual device, lets make that easier by also providing seat wide slots with touch events. Seat wide slots may be accessed using libinput_event_touch_get_seat_slot(). Signed-off-by: Jonas Ådahl jad...@gmail.com ---

[PATCH libinput 2/5] doc: Rephrase touch event slot description to be more event centric

2014-02-12 Thread Jonas Ådahl
It is unclear what current means as events are asynchronous, and since a slot is associated with a touch event rather than a device, change the description to reflect this. Signed-off-by: Jonas Ådahl jad...@gmail.com --- src/libinput.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH libinput 1/5] Fix coding style issues

2014-02-12 Thread Jonas Ådahl
Signed-off-by: Jonas Ådahl jad...@gmail.com --- src/libinput.c | 61 -- src/libinput.h | 57 +++--- 2 files changed, 41 insertions(+), 77 deletions(-) diff --git a/src/libinput.c

[PATCH libinput 4/5] evdev: Use -1 to represent touch events slots from single touch devices

2014-02-12 Thread Jonas Ådahl
Signed-off-by: Jonas Ådahl jad...@gmail.com --- src/evdev.c| 8 +--- src/libinput.h | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index d8dff65..3fe28e4 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -163,7 +163,7 @@

[PATCH libinput 3/5] Change touch event slots from being unsigned to signed

2014-02-12 Thread Jonas Ådahl
Signed-off-by: Jonas Ådahl jad...@gmail.com --- src/libinput.c | 4 ++-- src/libinput.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libinput.c b/src/libinput.c index a5fb0dd..465913b 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -71,7 +71,7 @@ struct

[PATCH] Prevent zero sized wl_egl_window

2014-02-12 Thread Sinclair Yeh
It is illegal to create or resize a window to zero (or negative) width and/or height. This patch prevents such a request from happening. --- src/egl/wayland/wayland-egl/wayland-egl.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/egl/wayland/wayland-egl/wayland-egl.c

Re: [PATCH libinput 5/5] Add seat wide slot to touch events

2014-02-12 Thread Peter Hutterer
On Wed, Feb 12, 2014 at 09:36:42PM +0100, Jonas Ådahl wrote: Since a Wayland compositor have to represent all touch devices of a seat as one virtual device, lets make that easier by also providing seat wide slots with touch events. Seat wide slots may be accessed using

[PATCH 2/2] shell.c: restore maximized and fullscreen window on destroyed output

2014-02-12 Thread Xiong Zhang
When maximized or fullscreen window is on destroyed output, compositor can't change these windows to normal window without notify client, otherwise maximize or F11 buttion lose its effect after output unplug. Instead we keep these window as maximized or fullscreen, just change it's size to target

[PATCH 1/2] shell.c: Restore maximized and fullscreen window in xdg_shell correctly

2014-02-12 Thread Xiong Zhang
Problem: When I open a weston_terminal and maximize it, I can't restore it to original size. In xdg_shell implementation, shell depend on shsurf-saved_width and shsurf-saved_height to restore maximized and fullscreen window to original size. But it's too late to save these values in

Re: [RFC v2] Wayland presentation extension (video protocol)

2014-02-12 Thread Pekka Paalanen
On Wed, 12 Feb 2014 11:27:12 -0800 Bill Spitzak spit...@gmail.com wrote: I think I was wrong to say the display time would always be = to the time the client specifies. It would be rounded just like you are saying, the nearest start time would be rounded to the nearest output frame start