Re: A barebone version of Weston?

2012-07-10 Thread Jonas Ådahl
On Wed, Jul 11, 2012 at 3:53 AM, Mikalai Kisialiou wrote: > There is an article on http://www.phoronix.com that there is a new feature > of sliding desktop support in Weston. I am wondering if it would make sense > to split Weston implemention into 2 distinct ones: a barebone implementation > with

Re: A barebone version of Weston?

2012-07-10 Thread Juan Zhao
The sliding functionality is pretty good, I also like it. As I know, the author of sliding functionality is also porting it to tablet-shell for embeded system usage, could this resolve your concern for desktop-shell? Thanks, Juan On Tue, 2012-07-10 at 18:53 -0700, Mikalai Kisialiou wrote: > The

A barebone version of Weston?

2012-07-10 Thread Mikalai Kisialiou
There is an article on http://www.phoronix.com that there is a new feature of sliding desktop support in Weston. I am wondering if it would make sense to split Weston implemention into 2 distinct ones: a barebone implementation with minimal features (architecture + driver compatibility) and a full-

Re: How to get windows list?

2012-07-10 Thread Christopher James Halse Rogers
On Wed, 2012-07-11 at 00:55 +0500, Сергей wrote: > Hello, I have three questions: > 1) how i can get windows list in wayland? For example: application > panell in KDE or windows thumbnails in GNOME activites. Sorry if i > missing this in wayland documentations. You cannot*. *: Ok, you can, in ce

Re: [systemd-devel] [RFC] VTs for multiple seats

2012-07-10 Thread Christopher James Halse Rogers
On Tue, 2012-07-10 at 21:29 +0200, David Herrmann wrote: > Hi Kristian > > On Tue, Jul 10, 2012 at 8:15 PM, Kristian Høgsberg > wrote: > > On Tue, Jul 10, 2012 at 12:22:13PM -0400, Casey Dahlin wrote: > >> On Mon, Jul 09, 2012 at 06:17:13PM -0400, Kristian Høgsberg wrote: > >> > No, wayland is t

Re: [systemd-devel] [RFC] VTs for multiple seats

2012-07-10 Thread Casey Dahlin
On Tue, Jul 10, 2012 at 10:03:37PM +0200, David Herrmann wrote: > On Tue, Jul 10, 2012 at 9:57 PM, Casey Dahlin wrote: > > On Tue, Jul 10, 2012 at 09:29:05PM +0200, David Herrmann wrote: > >> I don't think this is currently possible with the weston codebase, as > >> we require each compositor-back

Re: [systemd-devel] [RFC] VTs for multiple seats

2012-07-10 Thread David Herrmann
On Tue, Jul 10, 2012 at 9:57 PM, Casey Dahlin wrote: > On Tue, Jul 10, 2012 at 09:29:05PM +0200, David Herrmann wrote: >> I don't think this is currently possible with the weston codebase, as >> we require each compositor-backend to allow multiple surfaces. > > This part is all the conversation wa

Re: [systemd-devel] [RFC] VTs for multiple seats

2012-07-10 Thread Casey Dahlin
On Tue, Jul 10, 2012 at 09:29:05PM +0200, David Herrmann wrote: > I don't think this is currently possible with the weston codebase, as > we require each compositor-backend to allow multiple surfaces. This part is all the conversation was about. --CJD _

How to get windows list?

2012-07-10 Thread Сергей
Hello, I have three questions: 1) how i can get windows list in wayland? For example: application panell in KDE or windows thumbnails in GNOME activites. Sorry if i missing this in wayland documentations. 2) it possible make tiling wm in wayland? ()with differents rules for different types of w

Re: [systemd-devel] [RFC] VTs for multiple seats

2012-07-10 Thread David Herrmann
Hi Kristian On Tue, Jul 10, 2012 at 8:15 PM, Kristian Høgsberg wrote: > On Tue, Jul 10, 2012 at 12:22:13PM -0400, Casey Dahlin wrote: >> On Mon, Jul 09, 2012 at 06:17:13PM -0400, Kristian Høgsberg wrote: >> > No, wayland is the protocol, weston is the compositor building >> > toolkit. If you wan

Re: [PATCH wayland 2/4] server: fix wl_seat_set_keyboard

2012-07-10 Thread Bill Spitzak
How about: if (keyboard) { if (seat->keyboard || keyboard->seat) return; } else { if (!seat->keyboard) return; } seat->keyboard = keyboard; Kristian Høgsberg wrote: On Tue, Jul 10, 20

Re: [PATCH weston] Fix a crash when a client disconnects.

2012-07-10 Thread Kristian Høgsberg
On Tue, Jul 10, 2012 at 09:28:11AM -0700, Dima Ryazanov wrote: > I see the following use-after-free when a client disconnects: > > ==21822== Invalid write of size 8 > ==21822==at 0x54A8F74: wl_list_remove (wayland-util.c:51) > ==21822==by 0x409C87: destroy_frame_callback (compositor.c:1362

Re: [systemd-devel] [RFC] VTs for multiple seats

2012-07-10 Thread Casey Dahlin
On Tue, Jul 10, 2012 at 02:15:40PM -0400, Kristian Høgsberg wrote: > On Tue, Jul 10, 2012 at 12:22:13PM -0400, Casey Dahlin wrote: > > On Mon, Jul 09, 2012 at 06:17:13PM -0400, Kristian Høgsberg wrote: > > > No, wayland is the protocol, weston is the compositor building > > > toolkit. If you want

Re: [systemd-devel] [RFC] VTs for multiple seats

2012-07-10 Thread Kristian Høgsberg
On Tue, Jul 10, 2012 at 12:22:13PM -0400, Casey Dahlin wrote: > On Mon, Jul 09, 2012 at 06:17:13PM -0400, Kristian Høgsberg wrote: > > No, wayland is the protocol, weston is the compositor building > > toolkit. If you want an EGL compositor on KMS with evdev input, you > > But we don't want an EG

Re: [PATCH wayland 3/4] cursor: use os_create_anonymous_file()

2012-07-10 Thread Kristian Høgsberg
On Tue, Jul 10, 2012 at 01:05:02PM +0300, Pekka Paalanen wrote: > Copy the implementation of os_create_anonymous_file() here from weston, > so we can use it instead of hardcoding a path to /tmp. Thanks, that's better. Kristian > Signed-off-by: Pekka Paalanen > --- > configure.ac |

Re: [PATCH wayland 2/4] server: fix wl_seat_set_keyboard

2012-07-10 Thread Kristian Høgsberg
On Tue, Jul 10, 2012 at 01:05:01PM +0300, Pekka Paalanen wrote: > This makes wl_seat_set_keyboard similar to wl_seat_set_pointer in that > it's a no-op, if you try to set keyboard to NULL when it already is > NULL, instead of refusing to set it to NULL ever. Yup, looks right. Kristian > Signed-o

Re: [PATCH wayland 1/4] server: add lose_touch_focus()

2012-07-10 Thread Kristian Høgsberg
On Tue, Jul 10, 2012 at 01:05:00PM +0300, Pekka Paalanen wrote: > Just like wl_keyboard and wl_pointer, add a signal handler for losing > touch focus. I've applied this one since it's a step in the right direction, but we need to pull more generic touch logic from weston into wayland. We'll need

[PATCH weston] Fix a crash when a client disconnects.

2012-07-10 Thread Dima Ryazanov
I see the following use-after-free when a client disconnects: ==21822== Invalid write of size 8 ==21822==at 0x54A8F74: wl_list_remove (wayland-util.c:51) ==21822==by 0x409C87: destroy_frame_callback (compositor.c:1362) ==21822==by 0x56B44E7: destroy_resource (wayland-server.c:427) ==21

Re: [systemd-devel] [RFC] VTs for multiple seats

2012-07-10 Thread Casey Dahlin
On Mon, Jul 09, 2012 at 06:17:13PM -0400, Kristian Høgsberg wrote: > No, wayland is the protocol, weston is the compositor building > toolkit. If you want an EGL compositor on KMS with evdev input, you But we don't want an EGL compositor. We want bare-bones KMS support. One of the things he ment

Re: Input Methods

2012-07-10 Thread Jan Arne Petersen
Hi, On 07/10/2012 03:49 PM, Philipp Brüschweiler wrote: Thanks for your answer. I have finally managed to get something going, using a wl_keyboard_grab. This seems to work, but has the problem that it completely grabs the text_model until the text_model gets deactivated. Yes, that is why the t

Re: Input Methods

2012-07-10 Thread Philipp Brüschweiler
Hi Jan, Thanks for your answer. I have finally managed to get something going, using a wl_keyboard_grab. This seems to work, but has the problem that it completely grabs the text_model until the text_model gets deactivated. I have looked at wl_keyboard_set_focus a bit, and it seems to me that for

Re: Input Methods

2012-07-10 Thread Jan Arne Petersen
Hi, On 07/09/2012 06:32 PM, Philipp wrote: I have been thinking about trying to implement a simple composing input method (like for example pinyin). I read http://blog.jpetersen.org/2012/06/20/text-input-method-support-in-wayland/ and https://wiki.maliit.org/Wayland_Input_Method_System_Proposal

Re: [PATCH] shell: avoid endless sending event when meeting hanged-not-exited client

2012-07-10 Thread Kristian Høgsberg
On Tue, Jul 10, 2012 at 01:20:24AM -0700, juan.j.z...@linux.intel.com wrote: > From: Juan Zhao > > When the client was hanged and not responsible for a long time, the server > will generate > endless and useless "set_busy_cursor" related events. And finally, weston > crashed, with > error mes

Re: [PATCH] shell: correct the member name of getting panel height

2012-07-10 Thread Kristian Høgsberg
On Mon, Jul 09, 2012 at 10:24:09PM -0700, juan.j.z...@linux.intel.com wrote: > From: Juan Zhao > > It does not get the correct panel height for now. The memeber of list > to read should be layer_link not link now. Thanks, applied. Kristian > Signed-off-by: Juan Zhao > --- > src/shell.c | 2

Re: Adding sliding layout effect in weston desktop shell

2012-07-10 Thread tecton tang
Sorry I forgot to add the method to define trash image in weston.ini file. The "trash-image" key is below [shell], you can add it like: [shell] ... animation=zoom trash-image=<...>/trash.png Thanks. 2012/7/10 tecton tang > Hello everyone. > > Recently we are developing Wayland project with hel

[PATCH wayland 4/4] cursor: fix fd leak and a segfault

2012-07-10 Thread Pekka Paalanen
- don't leak fd in shm_pool_destroy() - return NULL from wl_cursor_theme_load() if pool fails Tha last one fixes a segfault, when shm_pool_create() has failed. Signed-off-by: Pekka Paalanen --- cursor/wayland-cursor.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a

[PATCH wayland 3/4] cursor: use os_create_anonymous_file()

2012-07-10 Thread Pekka Paalanen
Copy the implementation of os_create_anonymous_file() here from weston, so we can use it instead of hardcoding a path to /tmp. Signed-off-by: Pekka Paalanen --- configure.ac |2 +- cursor/Makefile.am|2 + cursor/os-compatibility.c | 128 +

[PATCH wayland 2/4] server: fix wl_seat_set_keyboard

2012-07-10 Thread Pekka Paalanen
This makes wl_seat_set_keyboard similar to wl_seat_set_pointer in that it's a no-op, if you try to set keyboard to NULL when it already is NULL, instead of refusing to set it to NULL ever. Signed-off-by: Pekka Paalanen --- src/wayland-server.c |2 +- 1 files changed, 1 insertions(+), 1 delet

[PATCH wayland 1/4] server: add lose_touch_focus()

2012-07-10 Thread Pekka Paalanen
Just like wl_keyboard and wl_pointer, add a signal handler for losing touch focus. Signed-off-by: Pekka Paalanen --- src/wayland-server.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index 9f9d6b3..82ed326 100644 -

Re: [PATCH wayland 2/2] server: fix wl_seat_set_{keyboard,touch}

2012-07-10 Thread Pekka Paalanen
On Thu, 5 Jul 2012 13:31:11 +0300 Pekka Paalanen wrote: > Looks like an exclamation mark had decided to run and hide on another > line. > > This makes wl_seat_set_keyboard and wl_seat_set_touch similar to > wl_seat_set_pointer. > > Signed-off-by: Pekka Paalanen > --- > src/wayland-server.c |

[PATCH updated] shell: avoid endless sending event when meeting hanged-not-exited client

2012-07-10 Thread juan . j . zhao
From: Juan Zhao When the client was hanged and not responsible for a long time, the server will generate endless and useless "set_busy_cursor" related events. And finally, weston crashed, with error message:"read error from connection 0x823b560: Connection reset by peer (104) read error: C

Re: [PATCH] shell: avoid endless sending event when meeting hanged-not-exited client

2012-07-10 Thread Juan Zhao
Please ignore this mail! Sorry for the TYPO! Thanks, Juan On Tue, 2012-07-10 at 01:20 -0700, juan.j.z...@linux.intel.com wrote: > From: Juan Zhao > > When the client was hanged and not responsible for a long time, the server > will generate > endless and useless "set_busy_cursor" related eve

[PATCH] shell: avoid endless sending event when meeting hanged-not-exited client

2012-07-10 Thread juan . j . zhao
From: Juan Zhao When the client was hanged and not responsible for a long time, the server will generate endless and useless "set_busy_cursor" related events. And finally, weston crashed, with error message:"read error from connection 0x823b560: Connection reset by peer (104) read error: C

Re: [PATCH wayland 2/2] cursor: fix some leaks

2012-07-10 Thread Pekka Paalanen
On Mon, 9 Jul 2012 18:02:51 -0400 Kristian Høgsberg wrote: > On Mon, Jul 09, 2012 at 01:34:35PM +0300, Pekka Paalanen wrote: > > - don't leak memory in shm_pool_create() on failure > > - don't leak fd in shm_pool_destroy() > > - return NULL from wl_cursor_theme_load() if pool fails > > > > Tha l