Re: [PATCH v2 1/3] Handle CJK wide glyph rendering

2013-07-17 Thread Peng Wu
On Wed, 2013-07-17 at 09:53 -0700, Bill Spitzak wrote: > For a demo > client I would skip trying to interpret wcwidth on incoming text, > just > act like each glyph takes one character cell. But this will cause rendering problems when display CJK characters. The CJK glyphs will overlap each othe

[PATCH 3/3] Add a wl_global_get_user_data function

2013-07-17 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/wayland-server.c | 6 ++ src/wayland-server.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/wayland-server.c b/src/wayland-server.c index a0d1019..122e05e 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -820,6 +820,12 @@ wl_glo

[PATCH 2/3] Add support for client-side language bindings

2013-07-17 Thread Jason Ekstrand
This commit adds support for language bindings on the client half of the library. The idea is the same as for server-side dispatchers. Signed-off-by: Jason Ekstrand --- src/wayland-client.c | 90 ++-- src/wayland-client.h | 5 +++ 2 files changed

[PATCH 1/3] Add support for server-side language bindings

2013-07-17 Thread Jason Ekstrand
This commit adds support for server-side languages bindings. This is done in two ways: 1. Adding a wl_resource_set_dispatcher function that corresponds to wl_resource_set_interface. The only difference between the two functions is that the new version takes a dispatcher along with the implementa

[PATCH 0/3] Add support for language bindings

2013-07-17 Thread Jason Ekstrand
The following three patches add support for language bindings to libwayland. This is much easier now that wl_resource is an opaque structure. Everything has been tested and works with my Java compositor and example simple-shm client. Jason Ekstrand (3): Add support for server-side language bin

Re: Multiprocess rendering in wayland - webkitgtk+ --- socket issue?

2013-07-17 Thread yan . wang
> On Mon, Jul 08, 2013 at 09:38:26AM +0200, Jonas Ã…dahl wrote: >> On Mon, Jul 8, 2013 at 8:05 AM, Iago Toral wrote: >> > Hi, >> > >> > I am working on porting WebKitGTK+ to Wayland and we are having some >> > difficulties figuring out the proper way to deal with the multiprocess >> > architecture

Re: Multiprocess rendering in wayland - webkitgtk+

2013-07-17 Thread yan . wang
> On Mon, Jul 08, 2013 at 11:13:15PM -0700, yan.w...@linux.intel.com wrote: >> Hi, >> I have implemented Wayland buffer sharing mechanism in WebKit2-efl >> based >> on nested client example. Nested client share buffer from one nested >> client to nesting client which is the Wayland server of nest

Re: [PATCH weston] evdev: Mouse speed and acceleration

2013-07-17 Thread Daniel Stone
Hi, Did anything happen with these? Additionally, the tuning seems a little hostile: if we have a subset of known-good values, we should probably mostly stick to those. Really, I'd just love to see a 1-10 'speed' configuration item that just does the right thing, rather than having to guess the ma

Re: [PATCH v2 1/3] Handle CJK wide glyph rendering

2013-07-17 Thread Bill Spitzak
The wcwidth is necessary to make the terminal and the curses library agree and should only be used to interpret how to turn the incoming data into a resulting display. After that you have the glyphs you want to draw on the screen and you should use that to figure out where to draw underscores a

CFP for Graphics and Display uConf at LPC 2013

2013-07-17 Thread Laurent Pinchart
Hi all, It's time to start nailing down the agenda for the Graphics and Display microconference at the Linux Plumbers Conference 2013. For conference approval and preliminary planning purposes, we have compiled a list of possible topics for discussion. The overview and general list of topic ide

Re: [PATCH 2/2] Some CJK glyphs are wide, which occupy two columns. If the glyph is wide, then use two columns instead of one.

2013-07-17 Thread Peng Wu
Hi David, I just re-send the v2 patch set, please review it. Thanks, Peng Wu On Wed, 2013-07-10 at 16:18 +0200, David Herrmann wrote: > I recommend just leaving multi-width support out of terminal.c. It > adds complexity (including wcwidth()) and seems misplaced in a debug > helper like westo

[PATCH v2 3/3] Fixes compute selection

2013-07-17 Thread Peng Wu
Correctly compute the mouse selection when some wide glyphs in rows. --- clients/terminal.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/clients/terminal.c b/clients/terminal.c index d45b740..37f1af8 100644 --- a/clients/terminal.c +++ b/clients/terminal.c @@ -2437,6 +2437,8

[PATCH v2 2/3] Fixes cursor rendering for wide glyphs

2013-07-17 Thread Peng Wu
Show the cursor at the right position, and use wide cursor under wide glyph. --- clients/terminal.c | 29 + 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/clients/terminal.c b/clients/terminal.c index 97e315f..d45b740 100644 --- a/clients/terminal.c +++

[PATCH v2 1/3] Handle CJK wide glyph rendering

2013-07-17 Thread Peng Wu
Some CJK glyphs are wide, which occupy two columns. If the glyph is wide, then use two columns instead of one. --- clients/Makefile.am | 2 +- clients/terminal.c | 45 +++-- 2 files changed, 40 insertions(+), 7 deletions(-) diff --git a/clients/Makefile.a

[PATCH v2 0/3] Improves CJK wide character handling

2013-07-17 Thread Peng Wu
Currently weston terminal render CJK characters incorrectly, I wrote 3 patches to improves it. The patch set covers: 1. fixes cursor position and rendering; 2. fixes text selection computing and rendering; PS: If this patch set seems okay, I will begin to remove the glib dependence by d