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

2012-08-21 Thread tecton69
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 13/14] tablet-shell: remove lock surface in tablet-shell.

2012-08-21 Thread tecton69
From: Ning Tang It is no requirement to use lockscreen. So remove it totally now. Signed-off-by: Ning Tang --- clients/tablet-shell.c| 95 +-- protocol/tablet-shell.xml | 5 --- src/tablet-shell.c| 89 +++---

[PATCH 12/14] tablet-shell: add key binding to launch terminal.

2012-08-21 Thread tecton69
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 11/14] tablet-shell: add key binding for kill and activate surface.

2012-08-21 Thread tecton69
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 | 73 ++ 1 file changed, 73 insertions(+) diff --git a/src/tablet-she

[PATCH 10/14] tablet-shell: add event in tablet-client protocol.

2012-08-21 Thread tecton69
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| 90

[PATCH 09/14] tablet-shell: add shell_surface in tablet-shell.

2012-08-21 Thread tecton69
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 w

[PATCH 08/14] tablet-shell: remove conflict key binding.

2012-08-21 Thread tecton69
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 f17d888.

[PATCH 07/14] tablet-shell: add layout indicator on homescreen.

2012-08-21 Thread tecton69
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 | 51 ++

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

2012-08-21 Thread tecton69
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 | 153

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

2012-08-21 Thread tecton69
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 inse

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

2012-08-21 Thread tecton69
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-she

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

2012-08-21 Thread tecton69
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 | 133 + weston-tablet.ini | 3 ++ 2 files changed, 94 insertions(+), 42

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

2012-08-21 Thread tecton69
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/14] tablet-shell: add weston-tablet.ini file for tablet shell configuration.

2012-08-21 Thread tecton69
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/14] bring tablet-shell back to life

2012-08-21 Thread tecton69
From: Ning Tang Hi all, We are working to make the tablet-shell workable and more stable to use. We added sliding support and make client applications running on tablet-shell. The last several week we refined the code and added serveral features such as layout indicator. And we are still on

[PATCH] Add layout tag in weston.ini file for tablet shell.

2012-07-18 Thread tecton69
From: Ning Tang Add trash-image for showing the trash image while dragging launchers. [layout] means create a layout and launchers below it will be shown on it. Default is one layout. Signed-off-by: Li Chen Signed-off-by: Yi Yuan Signed-off-by: Ning Tang --- weston.ini | 2 ++ 1 file ch

[PATCH 5/5] tablet-shell: Add trash function when dragging launchers.

2012-07-17 Thread tecton69
From: Ning Tang Show a trash image when dragging the launcher. If launcher is upon trash, it will be translucent and release it will cause the icon as well as tag in weston.ini be deleted. Signed-off-by: Li Chen Signed-off-by: Yi Yuan Signed-off-by: Ning Tang --- clients/tablet

[PATCH 4/5] tablet-shell: Make launchers draggable.

2012-07-17 Thread tecton69
From: Ning Tang The determination is occurred in launcher motion function. If the launcher is pressed some time, it will create the drag surface. That launcher's icon would follow cursor. Signed-off-by: Li Chen Signed-off-by: Yi Yuan Signed-off-by: Ning Tang --- clients/tablet-

[PATCH 3/5] tablet-shell: Making the layout draggable and have sliding effect.

2012-07-17 Thread tecton69
From: Ning Tang Use frame callback to move layout and thus making layout move at a speed. Also button and motion function will record the offset. Signed-off-by: Li Chen Signed-off-by: Yi Yuan Signed-off-by: Ning Tang --- clients/tablet-shell.c | 167 +

[PATCH 2/5] tablet-shell: Draw layout and launchers on it.

2012-07-17 Thread tecton69
From: Ning Tang Layout add redraw function to set allocation for launchers. Signed-off-by: Li Chen Signed-off-by: Yi Yuan Signed-off-by: Ning Tang --- clients/tablet-shell.c | 177 +++-- 1 file changed, 141 insertions(+),

[PATCH 1/5] tablet-shell: Add layout on home screen.

2012-07-17 Thread tecton69
From: Ning Tang Add a structure of layout which is between homescreen and launchers. The configuration of layout is also included. Signed-off-by: Li Chen Signed-off-by: Yi Yuan Signed-off-by: Ning Tang --- clients/tablet-shell.c | 67

[PATCH 0/5] tablet-shell: Add sliding layout effect.

2012-07-17 Thread tecton69
From: Ning Tang Hi everyone, We added the sliding layout effect like tablet shell. The effect is similar to that on desktop shell. This time we reuse the struct of launcher instead of creating shortcut. Currently the launchers on homescreen can't move. And we made them draggable and removable.

[PATCH 2/2] desktop-shell: Add sliding layout on background

2012-07-09 Thread tecton69
From: Ning Tang This patch is based on Zhi Wen's patch. Dragging the layout have an effect of switching between them. Shortcuts are placed on layouts and can be activated as launcher. They are also draggable and can be deleted. The section name in weston.ini is "layout" and with no keys. I

[PATCH 1/2] desktop-shell: Add shortcut on background and can be activated.

2012-07-09 Thread tecton69
From: Wu, Zhiwen The section name in weston.ini is "shortcut" and keys definition are the same as launcher. The layout of shortcut is hardcoded for implementation convenience. Since the concept of shortcut is almost the same as panel_launcher, reused the panel_launcher code. Signed-off-by: Wu Zh