[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

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

2012-09-24 Thread Jan Arne Petersen
From: Jan Arne Petersen jpeter...@openismus.com 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

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

2012-09-24 Thread Jan Arne Petersen
From: Jan Arne Petersen jpeter...@openismus.com 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

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 ullysses.a.e...@intel.com In seat_handle_capabilities, if

[PATCH] event-test: more aggressive event testing

2012-09-24 Thread U. Artie Eoff
From: U. Artie Eoff ullysses.a.e...@intel.com 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 ullysses.a.e...@intel.com ---

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

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

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com Signed-off-by: Ning Tang ning.t...@intel.com --- 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

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com It is a base for further operations on layout. Launchers are put in a certain layout. Signed-off-by: Ning Tang ning.t...@intel.com --- clients/tablet-shell.c | 62 +++--- weston-tablet.ini | 3 ++- 2 files

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com Launcher is totally depend on layout and add layout redraw function to manage drawing launchers. Signed-off-by: Ning Tang ning.t...@intel.com --- clients/tablet-shell.c | 135 ++--- weston-tablet.ini | 3

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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 ning.t...@intel.com --- clients/tablet-shell.c | 234

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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 ning.t...@intel.com --- clients/window.c | 17 + clients/window.h | 3 +++ 2 files changed, 16

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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 ning.t...@intel.com --- clients/tablet-shell.c | 156

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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 ning.t...@intel.com --- clients/tablet-shell.c | 47

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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 ning.t...@intel.com --- src/tablet-shell.c | 2 -- 1 file changed, 2 deletions(-) diff --git

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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 ning.t...@intel.com --- protocol/tablet-shell.xml | 2 ++ src/tablet-shell.c

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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 ning.t...@intel.com --- src/tablet-shell.c | 74 ++ 1 file changed, 74

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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 ning.t...@intel.com ---

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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,

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com 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 ning.t...@intel.com --- protocol/tablet-shell.xml | 1 + src/tablet-shell.c

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

2012-09-24 Thread ning . tang
From: Ning Tang ning.t...@intel.com Use 256 for default trash image size. Signed-off-by: Ning Tang ning.t...@intel.com --- 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