[PATCH 19/19] tablet-shell: fix crash when trash image is unavailable.

2012-09-24 Thread ning . tang
From: Ning Tang Use 256 for default trash image size. Signed-off-by: Ning Tang --- clients/tablet-shell.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/clients/tablet-shell.c b/clients/tablet-shell.c index f5dec79..0e48fa8 100644 --- a/clients/tablet-she

[PATCH 18/19] tablet-shell: add sleep event in tablet_client protocol

2012-09-24 Thread ning . tang
From: Ning Tang Send an event to client to inform it that it will not be drawn and need it to release resources. The client task have a client resource to communicate. Signed-off-by: Ning Tang --- protocol/tablet-shell.xml | 1 + src/tablet-shell.c| 42 ---

[PATCH 17/19] tablet-shell: add task manager to tablet-shell.

2012-09-24 Thread ning . tang
From: Ning Tang Tablet-shell can run multitask. Key binding super + tab will switch between applications. Home screen is treated as a special client. One client may have several shell surface. They would be moved to a list when the client is hung. When switched back, shell surfaces will be

[PATCH 16/19] tablet-shell: Improve the sliding effect.

2012-09-24 Thread ning . tang
From: Ning Tang Use spring effect so that layout smoothly slides now. When layout motion or sliding automatically, it will use a spring effect to follow cursor. Set the new to_offset when mouse drags or layout need to sliding switch. So when frame callback it will change allocation. It is ai

[PATCH 15/19] tablet-shell: a workaround to prevent memory leak in drawing background.

2012-09-24 Thread ning . tang
From: Ning Tang The origin method is to create a surface every time paint background and destroy it. But load_cairo_surface(1) and cairo_surface_destroy(1) will cause memory leak. Since sliding effect will cause background to be drawn many times, use this workaround to avoid out of memory.

[PATCH 14/19] tablet-shell: remove lock surface in tablet-shell.

2012-09-24 Thread ning . tang
From: Ning Tang It is no requirement to use lockscreen. So remove it totally but remaining unlock listener to unlock from sleep status. --- clients/tablet-shell.c| 94 --- protocol/tablet-shell.xml | 5 --- src/tablet-shell.c| 79 +++--

[PATCH 13/19] tablet-shell: add key binding to launch terminal.

2012-09-24 Thread ning . tang
From: Ning Tang Terminal is regarded as special application to tablet-shell. So use ctrl+T to launch it. The server will send an event to daemon, and it will launch terminal according to the path in .ini file. Signed-off-by: Ning Tang --- clients/tablet-shell.c| 25 +++

[PATCH 12/19] tablet-shell: add key binding for kill and activate surface.

2012-09-24 Thread ning . tang
From: Ning Tang Send kill signal to client in order to exit. After the client ends, the surface below it would get focus. Signed-off-by: Ning Tang --- src/tablet-shell.c | 74 ++ 1 file changed, 74 insertions(+) diff --git a/src/tablet-shel

[PATCH 11/19] tablet-shell: add event in tablet-client protocol.

2012-09-24 Thread ning . tang
From: Ning Tang When a client is binded, the server side will send an event to let the client set fullscreen. If the client don't response, it will remain centered. Signed-off-by: Ning Tang --- protocol/tablet-shell.xml | 2 ++ src/tablet-shell.c| 74 +

[PATCH 10/19] tablet-shell: add shell_surface in tablet-shell.

2012-09-24 Thread ning . tang
From: Ning Tang Since now toytoolkit and simple programs use shell_surface to show on screen, we add it in tablet-shell to let them show. But we only need serveral feature in tablet shell, the wl_shell is too big and not suitable for tablet-shell. And it is helpful to fill in the interface of wl

[PATCH 09/19] tablet-shell: remove conflict key binding.

2012-09-24 Thread ning . tang
From: Ning Tang Left meta will cause mod key first recognized so mod + R is corrupted. Now tablet-shell can use mod + R to record video. Signed-off-by: Ning Tang --- src/tablet-shell.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tablet-shell.c b/src/tablet-shell.c index 3623736..

[PATCH 08/19] tablet-shell: add layout indicator on homescreen.

2012-09-24 Thread ning . tang
From: Ning Tang We could know how many layouts in total and our current layout. Keyword in ini file is the path to indicator images, use the format of 1-f.png(focus) 1.png 2-f.png... Signed-off-by: Ning Tang --- clients/tablet-shell.c | 47 +++ west

[PATCH 07/19] tablet-shell: add trash function when dragging launcher icon.

2012-09-24 Thread ning . tang
From: Ning Tang Determine whether to accpet the data by the allocation of trash area. If the icon is in it, then drop event will delete either the icon image as well as tag in ini file. Signed-off-by: Ning Tang --- clients/tablet-shell.c | 156 -

[PATCH 06/19] toytoolkit: add method to determine whether a point is in rectangle.

2012-09-24 Thread ning . tang
From: Ning Tang The method to determine whether a point is in an rectangle area is common and could be used by applications. Signed-off-by: Ning Tang --- clients/window.c | 17 + clients/window.h | 3 +++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/clien

[PATCH 05/19] tablet-shell: add motion handler to launchers.

2012-09-24 Thread ning . tang
From: Ning Tang Enable dragging launchers. Use the drag and drop mechanism, the launcher's icon is provided as cursor image. Currently ignore all drop events. Signed-off-by: Ning Tang --- clients/tablet-shell.c | 234 ++--- 1 file changed, 223 inser

[PATCH 04/19] tablet-shell: add sliding effect of layout.

2012-09-24 Thread ning . tang
From: Ning Tang Use frame callback to enable layout moving, so dragging layout will cause layout's offset changes. And redraw function will allocate corresponding positions to launchers. The allocation of layout won't change until sliding ends. Signed-off-by: Ning Tang --- clients/tablet-shel

[PATCH 03/19] tablet-shell: break the connection between launcher and homescreen.

2012-09-24 Thread ning . tang
From: Ning Tang Launcher is totally depend on layout and add layout redraw function to manage drawing launchers. Signed-off-by: Ning Tang --- clients/tablet-shell.c | 135 ++--- weston-tablet.ini | 3 ++ 2 files changed, 97 insertions(+), 4

[PATCH 02/19] tablet-shell: add layout structure on homescreen.

2012-09-24 Thread ning . tang
From: Ning Tang It is a base for further operations on layout. Launchers are put in a certain layout. Signed-off-by: Ning Tang --- clients/tablet-shell.c | 62 +++--- weston-tablet.ini | 3 ++- 2 files changed, 61 insertions(+), 4 deletions(

[PATCH 01/19] tablet-shell: add weston-tablet.ini file for tablet shell configuration.

2012-09-24 Thread ning . tang
From: Ning Tang Signed-off-by: Ning Tang --- weston-tablet.ini | 64 +++ 1 file changed, 64 insertions(+) create mode 100644 weston-tablet.ini diff --git a/weston-tablet.ini b/weston-tablet.ini new file mode 100644 index 000..9387bab --

[PATCH 00/19] add new feature to tablet-shell

2012-09-24 Thread ning . tang
From: Ning Tang Hi all, This time we added multitask feature and spring effect on sliding layout. The spring effect will reduce trailing caused by rapid mouse dragging. Using key binding super + tab would switch between clients, an event would be sent to client to let it free resources and i

Re: Comment on global shortcuts security

2012-09-24 Thread Bill Spitzak
Keystrokes should be sent to the application first. Only if the application refuses them should they be considered global shortcuts. I think this will fix most of the security problems you raise. It also means there can be simpler shortcuts, currenlty global shortcuts require the holding down

Comment on global shortcuts security

2012-09-24 Thread Piotr Rak
Hi, Although I am not security expert, I'd like to share my input into this topic, so putting on my black hat... It is probably not great discovery, but I believe that minimal requirement for given combination of keys, to be allowed as global shortcut is that is not printable and not whitespace g

[PATCH] event-test: more aggressive event testing

2012-09-24 Thread U. Artie Eoff
From: "U. Artie Eoff" Test surface pointer enter/leave/motion and surface leave/enter events more aggressively. Depends on: http://lists.freedesktop.org/archives/wayland-devel/2012-September/005224.html Signed-off-by: U. Artie Eoff --- tests/event-test.c | 269 +++

RE: [PATCH] test-client: initialize input instance.

2012-09-24 Thread Eoff, Ullysses A
bump. >-Original Message- >From: Eoff, Ullysses A >Sent: Tuesday, September 04, 2012 2:38 PM >To: wayland-devel@lists.freedesktop.org >Cc: Eoff, Ullysses A >Subject: [PATCH] test-client: initialize input instance. > >From: "U. Artie Eoff" > >In seat_handle_capabilities, if input->pointer

Re: [PATCH] text: Rename de/activate to enter/leave

2012-09-24 Thread Michael Hasselmann
On Mon, 2012-09-24 at 14:51 +0200, Jan Arne Petersen wrote: > + if (surface != window_get_wl_surface(entry->window)) > + return; > + not what the git message says ("text") -- this is a functional change ___ wayland-devel mailing list way

[PATCH] text: Rename de/activate to enter/leave

2012-09-24 Thread Jan Arne Petersen
From: Jan Arne Petersen Also add a surface argument to the enter event. --- clients/editor.c | 16 ++-- protocol/text.xml | 9 + src/text-backend.c | 4 ++-- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/clients/editor.c b/clients/editor.c index af1623

[PATCH v2] shell: Fix crash when an input panel is hiding

2012-09-24 Thread Jan Arne Petersen
From: Jan Arne Petersen Do not unset the output of the input panel surfaces when hiding. --- src/shell.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/shell.c b/src/shell.c index 2afa1b3..10b9822 100644 --- a/src/shell.c +++ b/src/shell.c @@ -2782,8 +2782,13 @@ hi

[PATCH] man: add man-page infrastructure

2012-09-24 Thread David Herrmann
This adds a man-page infrastructure based on Docbook XML files. This allows us to integrate the man-pages into the publican books later. An example page for wl_display_connect() (with an alias wl_display_connect_to_fd()) is also added. Feel free to add more man-pages. Function calls are put in man