Re: input handlig in separate thread

2013-10-20 Thread Eugen Friedrich
2013/10/20 Bill Spitzak spit...@gmail.com On 10/19/2013 10:03 AM, Eugen Friedrich wrote: Basically i would like to implement a thread(input thread) that should only dispatch incoming input events from wayland compositor when the rendering thread is idle and the input thread should sleep

[PATCH 0/6] Give the wayland backend an actual frame

2013-10-20 Thread Jason Ekstrand
This series of patches makes a few improvements to the wayland backend. In particular, it adds a frame using the new frame code in cairo-util. It also contains a performance/responsiveness improvement and adds a SHM/pixman fallback mode if EGL is not available. Jason Ekstrand (6):

[PATCH 1/6] compositor-wayland: Rename structure members and make things more consistant

2013-10-20 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand ja...@jlekstrand.net --- src/compositor-wayland.c | 76 ++-- 1 file changed, 41 insertions(+), 35 deletions(-) diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index 7b670d9..df487ad 100644 ---

[PATCH 2/6] gl-renderer: Add support for per-output multi-texture borders.

2013-10-20 Thread Jason Ekstrand
The first advantage of this new API is that it is per-output instead of global to the gl_renderer instance. This means that different windows can have different titles, different button states, etc. The new api also uses four textures (one for each side) instead of one. This allows you to draw

[PATCH 3/6] compositor-wayland: Add an actual frame around the compositor window

2013-10-20 Thread Jason Ekstrand
This adds a window frame with a close button. Similar to the X11 backend, The window supports dragging but not resizing. Signed-off-by: Jason Ekstrand ja...@jlekstrand.net --- configure.ac | 2 +- src/compositor-wayland.c | 407 ++- 2

[PATCH 4/6] gl-renderer: Remove the renderer-global border support

2013-10-20 Thread Jason Ekstrand
This was only ever used by the wayland backend and is no longer used there. Signed-off-by: Jason Ekstrand ja...@jlekstrand.net --- src/gl-renderer.c | 173 +- src/gl-renderer.h | 4 -- 2 files changed, 1 insertion(+), 176 deletions(-) diff

[PATCH 5/6] compositor-wayland: Flush the display on commit

2013-10-20 Thread Jason Ekstrand
This fixes the problem where animations will wait to play until input is recieved. In general, it also makes the backend far more responsive. Signed-off-by: Jason Ekstrand ja...@jlekstrand.net --- src/compositor-wayland.c | 43 +++ 1 file changed, 23

[PATCH 6/6] compositor-wayland: Add pixman/SHM fallback mode

2013-10-20 Thread Jason Ekstrand
This also adds a --use-pixman command-line option to enable the pixman renderer explicitly. Signed-off-by: Jason Ekstrand ja...@jlekstrand.net --- src/compositor-wayland.c | 416 ++- src/compositor.c | 1 + 2 files changed, 342 insertions(+),

[PATCH 6/6 v2] compositor-wayland: Add pixman/SHM fallback mode

2013-10-20 Thread Jason Ekstrand
This also adds a --use-pixman command-line option to enable the pixman renderer explicitly. Signed-off-by: Jason Ekstrand ja...@jlekstrand.net --- The new version fixes a couple of damage-related bugs. src/compositor-wayland.c | 419 ++-