Re: Multiprocess rendering in wayland - webkitgtk+

2013-07-09 Thread yan . wang
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 nested client and Wayland client of Weston at the same time. For WebKit2, there may be no

Re: Multiprocess rendering in wayland - webkitgtk+

2013-07-09 Thread Iago Toral Quiroga
Hi Yan, thanks for the detailed reply, that was very helpful. It is also good to see that someone else has tried this before. I'll definitely give this a go. Iago On lun, 2013-07-08 at 23:13 -0700, yan.w...@linux.intel.com wrote: Hi, I have implemented Wayland buffer sharing mechanism in

[PATCH weston 2/3] tablet-shell: Fix copy and paste error in unlock handler

2013-07-09 Thread Rob Bradford
From: Rob Bradford r...@linux.intel.com The signal handler was using the wrong member to find the containing structure of the unlock listener. https://bugs.freedesktop.org/show_bug.cgi?id=57637 --- src/tablet-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH weston 3/3] tablet-shell: Avoid infinite loop when unlocking

2013-07-09 Thread Rob Bradford
From: Rob Bradford r...@linux.intel.com weston_compositor_wake will fire the signal that the unlock handler is setup as the listener for. Instead lets change the state to HOME which unlocks. --- src/tablet-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH weston] input: make sure we repick the focus surface after the old one is destroyed

2013-07-09 Thread Giulio Camuffo
currently defult_grab_focus does not repick a surface if a mouse button is pressed. change it so it does repick if there is no current focus surface, like when the focus gets destroyed, so the cursor does not disappear. --- src/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] wayland-client: Treat EOF when reading the wayland socket as an error

2013-07-09 Thread Neil Roberts
If EOF is encountered while reading from the Wayland socket, wl_display_read_events() will now return -1 so that it will be treated as an error. The documentation for this function states that it will set errno when there is an error so it additionally makes up an errno of EPIPE. If we don't do

Re: Multiprocess rendering in wayland - webkitgtk+

2013-07-09 Thread Daniel Stone
Hi Yan, Is this code available somewhere? Cheers, Daniel On 9 July 2013 09:13, 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

Re: [PATCH] wayland-client: Treat EOF when reading the wayland socket as an error

2013-07-09 Thread Rob Bradford
Hi Neil, On 9 July 2013 14:10, Neil Roberts n...@linux.intel.com wrote: If EOF is encountered while reading from the Wayland socket, wl_display_read_events() will now return -1 so that it will be treated as an error. The documentation for this function states that it will set errno when there

[PATCH] wayland-client: Treat EOF when reading the wayland socket as an error

2013-07-09 Thread Neil Roberts
the only thing that confused me was the past tense sentence […] Ok, that sounds sensible. Here is an updated patch. However we'd have to change every client / toolkit and so using a fatal display error is nicer since the toolkits should already be handling that. Well, that would be ideal

Re: [PATCH 1/2] As some CJK fonts are dual-width, use the average width of ASCII glyphs instead of the max_x_advance of the font, just like the vte project.

2013-07-09 Thread Bill Spitzak
Having done this before (but about 18 years ago) I *REALLY* doubt this solution is better. However it is possible that font design has changed a good deal since then? Using the width of a '2' made attempts by software to print columns look *vastly* better. It was unreadable before this

Re: [PATCH weston] input: make sure we repick the focus surface after the old one is destroyed

2013-07-09 Thread Bill Spitzak
Will this cause unexpected drag + raise events to be sent to whatever surface is now under the mouse? IMHO this is acceptable, but considering some other patches being posted here some will disagree. They want the server to deliver an exactly specified sequence of events with matching up/down

Qt 5 on Wayland support for QtQuick 1.1?

2013-07-09 Thread Carlos Gomez, HCL America
Hello - Does the Qt 5 on Wayland project provide backwards compatibility to QML/QtQuick 1.1 ? Thank You, ...cfg... 13/07/09 ::DISCLAIMER:: The

Re: [PATCH] wayland-client: Treat EOF when reading the wayland socket as an error

2013-07-09 Thread Neil Roberts
Bill Spitzak spit...@gmail.com writes: Maybe it can abort if ...read_events() is called after an error was encountered. Then bad toolkits will exit, while ones that check for the error state can do something intelligent. This sounds like a nice idea but it might go a bit wrong if there are

Re: Qt 5 on Wayland support for QtQuick 1.1?

2013-07-09 Thread Thiago Macieira
On terça-feira, 9 de julho de 2013 10.18.59, Carlos Gomez, HCL America wrote: Hello - Does the Qt 5 on Wayland project provide backwards compatibility to QML/QtQuick 1.1 ? Yes. If you can display a pixel on screen with Qt 5 on Wayland, Qt Quick 1.1 is supported. It can run with the raster

Re: [PATCH weston] input: make sure we repick the focus surface after the old one is destroyed

2013-07-09 Thread Giulio Camuffo
I don't think it will. Normally there is always a focus surface, the background if there is nothing above it. This patch only changes the behavior when there is not a focus surface, and i think the only case is when the surface is deleted. 2013/7/9 Bill Spitzak spit...@gmail.com Will this

Re: [PATCH weston 2/3] tablet-shell: Fix copy and paste error in unlock handler

2013-07-09 Thread Kristian Høgsberg
On Tue, Jul 09, 2013 at 12:12:49PM +0100, Rob Bradford wrote: From: Rob Bradford r...@linux.intel.com The signal handler was using the wrong member to find the containing structure of the unlock listener. https://bugs.freedesktop.org/show_bug.cgi?id=57637 Thanks, good catch. Kristian

Re: [PATCH weston 3/3] tablet-shell: Avoid infinite loop when unlocking

2013-07-09 Thread Kristian Høgsberg
On Tue, Jul 09, 2013 at 12:12:50PM +0100, Rob Bradford wrote: From: Rob Bradford r...@linux.intel.com weston_compositor_wake will fire the signal that the unlock handler is setup as the listener for. Instead lets change the state to HOME which unlocks. --- src/tablet-shell.c | 2 +- 1

Re: [PATCH weston 1/3] compositor: Make --modules always override other module loading

2013-07-09 Thread Kristian Høgsberg
On Tue, Jul 09, 2013 at 12:12:48PM +0100, Rob Bradford wrote: From: Rob Bradford r...@linux.intel.com This allows the test suite to strictly control the modules that get loaded by the compositor. The idea is that the command line option should allow loading additional modules to what's

Re: [PATCH weston] input: make sure we repick the focus surface after the old one is destroyed

2013-07-09 Thread Kristian Høgsberg
On Tue, Jul 09, 2013 at 02:21:24PM +0200, Giulio Camuffo wrote: currently defult_grab_focus does not repick a surface if a mouse button is pressed. change it so it does repick if there is no current focus surface, like when the focus gets destroyed, so the cursor does not disappear. Ah, yes,

Re: [PATCH weston] input: make sure we repick the focus surface after the old one is destroyed

2013-07-09 Thread Giulio Camuffo
Ok, it's not a big deal. 2013/7/9 Kristian Høgsberg hoegsb...@gmail.com On Tue, Jul 09, 2013 at 02:21:24PM +0200, Giulio Camuffo wrote: currently defult_grab_focus does not repick a surface if a mouse button is pressed. change it so it does repick if there is no current focus surface,

Re: [PATCH] wayland-client: Treat EOF when reading the wayland socket as an error

2013-07-09 Thread Kristian Høgsberg
On Tue, Jul 09, 2013 at 02:10:45PM +0100, Neil Roberts wrote: If EOF is encountered while reading from the Wayland socket, wl_display_read_events() will now return -1 so that it will be treated as an error. The documentation for this function states that it will set errno when there is an

Re: xserver problems

2013-07-09 Thread Kristian Høgsberg
On Mon, Jul 08, 2013 at 05:07:31PM -0700, Bill Spitzak wrote: Though I agree that the built-in default should load the wlshm driver if needed, this is not the problem I am trying to fix. My /etc/X11/xorg.conf file contains 'Driver nv'. This causes the wayland xserver to fail. This will

Re: [PATCH] wayland-client: Treat EOF when reading the wayland socket as an error

2013-07-09 Thread Kristian Høgsberg
On Tue, Jul 09, 2013 at 06:58:32PM +0100, Neil Roberts wrote: Bill Spitzak spit...@gmail.com writes: Maybe it can abort if ...read_events() is called after an error was encountered. Then bad toolkits will exit, while ones that check for the error state can do something intelligent.

Re: [PATCH weston] clients/editor.c: cursor now goes to a new line

2013-07-09 Thread Kristian Høgsberg
On Sat, Jul 06, 2013 at 08:55:54PM +0200, Peter Maatman wrote: --- clients/editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Thanks, committed. I updated the commit message a bit to better explain what the patch does. Kristian diff --git a/clients/editor.c

Re: [PATCH weston] clients/editor.c: esc key no longer prints out utf8 character

2013-07-09 Thread Kristian Høgsberg
On Sat, Jul 06, 2013 at 08:42:59PM +0200, blackwolf12333 wrote: --- clients/editor.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Thanks, that's better. Committed with a tweak to remove the // comment and simpler commit message. I used Peter Maatman as the author here as well

[PATCH] weston-test: schedule repaint after moving surface in test extension

2013-07-09 Thread U. Artie Eoff
From: U. Artie Eoff ullysses.a.e...@intel.com After some discussion with Rob Bradford (robster), we concluded that we need to schedule a compositor repaint in weston-test.c:test_configure_surface(...) to ensure that the moved surface gets a frame callback/repaint. This fixes

Re: xserver problems

2013-07-09 Thread Bill Spitzak
Kristian Høgsberg wrote: On Mon, Jul 08, 2013 at 05:07:31PM -0700, Bill Spitzak wrote: Though I agree that the built-in default should load the wlshm driver if needed, this is not the problem I am trying to fix. My /etc/X11/xorg.conf file contains 'Driver nv'. This causes the wayland xserver

Re: xserver problems

2013-07-09 Thread Bill Spitzak
Bill Spitzak wrote: Kristian Høgsberg wrote: On Mon, Jul 08, 2013 at 05:07:31PM -0700, Bill Spitzak wrote: Though I agree that the built-in default should load the wlshm driver if needed, this is not the problem I am trying to fix. My /etc/X11/xorg.conf file contains 'Driver nv'. This

Re: Multiprocess rendering in wayland - webkitgtk+

2013-07-09 Thread yan . wang
Hi Yan, Is this code available somewhere? If you could get the code of webkit0-efl from tizen.org, you could find them on shared-surface branch. Kalyan integrated my implementation into it. Thanks. Yan Wang Cheers, Daniel On 9 July 2013 09:13, yan.w...@linux.intel.com wrote: Hi, I