Re: [PATCH V2] wayland.xml: add enum, bitfield and is_bitfield attributes

2014-09-23 Thread Boyan Ding
audience of wayland. Regards, Boyan Ding ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [PATCH wayland-web] extras: list three Wayland protocol dumping tools

2014-09-11 Thread Boyan Ding
on it for a while, but it is quite usable now and I hope I'll take some time to further improve it in the future. So, Acked-by: Boyan Ding stu_...@126.com Thanks, Boyan Ding Thanks, pq ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http

Re: [PATCH] update protocol specification to match wire protocol

2014-09-04 Thread Boyan Ding
to iterate again that if you change how it works now, the world will break before you). The tool you mentioned seems implement an older version of the specification and if you want to use that tool, you should change the code generation to the way wayland-scanner works now. Regards, Boyan Ding [1

[PATCH weston] xwm: Check whether the seat is NULL when needed in weston_wm_handle_button

2014-09-03 Thread Boyan Ding
://bugs.freedesktop.org/show_bug.cgi?id=82827 Signed-off-by: Boyan Ding stu_...@126.com --- xwayland/window-manager.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c index a216b76..f633324 100644 --- a/xwayland/window-manager.c +++ b

Re: Wayland specification doesn't match code generation

2014-09-03 Thread Boyan Ding
the details. Regards, Boyan Ding [1] http://ppaalanen.blogspot.fi/2014/07/wayland-protocol-design-object-lifespan.html On Wed, 2014-09-03 at 22:32 -0500, Paul Sbarra wrote: I tried to start some discussion on this topic previously, but it apparently didn't make it through the moderator, so I'm trying

Re: Wayland specification doesn't match code generation

2014-09-03 Thread Boyan Ding
On Wed, 2014-09-03 at 21:04 -0700, Jasper St. Pierre wrote: The fact that we have an undocumented hack like that in our scanner clearly isn't great. We need to document it. I totally agree. This can really confuse every beginner. ___ wayland-devel

Re: Xwayland/glamor broken after glamor-next merge

2014-09-01 Thread Boyan Ding
. I've biscected it down the the above merge commit by running glxgears on each checkout. Am I the only one seeing this? No. You aren't. See https://bugs.freedesktop.org/show_bug.cgi?id=81800 But I wonder if there is anyone working on it. Regards, Boyan Ding

Re: [PATCH weston] xwm: Check whether the seat is NULL sometimes in weston_wm_handle_button

2014-09-01 Thread Boyan Ding
On Mon, 2014-09-01 at 12:14 +0300, Pekka Paalanen wrote: On Fri, 29 Aug 2014 22:10:32 +0800 Boyan Ding stu_...@126.com wrote: Under some certain circumstances, pointer button may have been released when frame is still being resized/moved. When this happens, the picked seat is NULL

Re: [PATCH weston] xwm: Check whether the seat is NULL sometimes in weston_wm_handle_button

2014-09-01 Thread Boyan Ding
On Mon, 2014-09-01 at 12:14 +0300, Pekka Paalanen wrote: On Fri, 29 Aug 2014 22:10:32 +0800 Boyan Ding stu_...@126.com wrote: Under some certain circumstances, pointer button may have been released when frame is still being resized/moved. When this happens, the picked seat is NULL

[PATCH weston] xwm: Check whether the seat is NULL sometimes in weston_wm_handle_button

2014-08-29 Thread Boyan Ding
://bugs.freedesktop.org/show_bug.cgi?id=82827 Signed-off-by: Boyan Ding stu_...@126.com --- xwayland/window-manager.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c index a216b76..f633324 100644 --- a/xwayland/window-manager.c

[PATCH weston] xwm: Do not activate override redirect windows

2014-08-29 Thread Boyan Ding
We shouldn't do WM-y things on an O-R window, including setting input focus to it. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=81273 Signed-off-by: Boyan Ding stu_...@126.com --- xwayland/window-manager.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xwayland/window-manager.c b

[PATCH weston] desktop-shell: Get rid of the racy shell client's destroy listener

2014-08-23 Thread Boyan Ding
=82957 Signed-off-by: Boyan Ding stu_...@126.com --- desktop-shell/shell.c | 16 desktop-shell/shell.h | 1 - 2 files changed, 17 deletions(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 99f3343..07700cf 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell

Re: [PATCH weston] desktop-shell: Get rid of the racy shell client's destroy listener

2014-08-23 Thread Boyan Ding
I forgot to go through my mails before sending, completely the same with http://lists.freedesktop.org/archives/wayland-devel/2014-August/016816.html . Ignore mine. Sorry Boyan Ding On Sat, 2014-08-23 at 15:02 +0800, Boyan Ding wrote: The only thing that desktop_shell_client_destroy() do

Re: Gtk: cannot open display error

2014-08-23 Thread Boyan Ding
version not recommended because xwayland now is affected by an outstanding bug [2]). I can launch chrome successfully on my machine but I have to warn that there are still some bugs and the user experience may not be smooth. Regards, Boyan Ding [1] http://wayland.freedesktop.org/xserver.html [2

[PATCH v2 weston 1/2] xwm: Use cursor theme and size in weston.ini

2014-08-20 Thread Boyan Ding
to make it consistent with native wayland apps v2: use the config in weston_compositor instead of reparsing weston.ini Signed-off-by: Boyan Ding stu_...@126.com --- xwayland/window-manager.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/xwayland/window

Re: [PATCH weston 2/2] build: do not run xwayland test for distcheck

2014-08-20 Thread Boyan Ding
These two patches are Reviewed-by: Boyan Ding stu_...@126.com On Wed, 2014-08-20 at 12:21 +0300, Pekka Paalanen wrote: From: Pekka Paalanen pekka.paala...@collabora.co.uk The Xwayland test has been broken ever since the migration to the stand-alone Xwayland server binary. Disable the test

Re: [PATCH weston 3/3] shell: constrain resize grabs so titlebars don't go under the panel

2014-08-20 Thread Boyan Ding
annoying. Cheers, Boyan Ding On Wed, 2014-08-20 at 10:37 +0200, Jonny Lamb wrote: https://bugs.freedesktop.org/show_bug.cgi?id=80228 --- desktop-shell/shell.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index

Re: [PATCH v2 weston 1/2] xwm: Use cursor theme and size in weston.ini

2014-08-20 Thread Boyan Ding
but I wonder how to correct it. Thanks, Boyan Ding ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [PATCH weston 3/3] shell: constrain resize grabs so titlebars don't go under the panel

2014-08-20 Thread Boyan Ding
. Then, try to move the window around the desktop. I cannot move the window up past some arbitrary point in the middle of the desktop, while there clearly is room to move. Yeah, I also noticed that. Maybe we should change that, too. Cheers, Boyan Ding Thanks, pq

Re: [PATCH weston 2/2] xwm: check whether the picked seat can be NULL

2014-08-19 Thread Boyan Ding
this [1], though I can't reproduce it myself. It said that the picked seat can be NULL even in weston_wm_handle_button! I guess somewhere might be wrong in X (just a wild guess). Cheers, Boyan Ding [1] https://bugs.archlinux.org/task/41456 ___ wayland-devel

Re: The road to Wayland/Weston 1.6 and 1.5.1

2014-08-18 Thread Boyan Ding
It should follow c4902124 and 9c5aedff in master (and also in 1.5 branch) but I left that out then. Thanks for all the efforts. Regards, Boyan Ding Thanks, pq [1] http://lists.freedesktop.org/archives/wayland-devel/2014-May/014955.html ___ wayland

Re: How to take screenshots under weston?

2014-08-15 Thread Boyan Ding
Hi, Screenshot works okay under x11-backend on my weston (the git version). Please note that the screenshot seems to be in the directory where you launch weston (not always $HOME). BTW, I was wrong about screenshot binding. It's always Super + S, not Mod + S. Regards, Boyan Ding On Fri, 2014

Re: How to take screenshots under weston?

2014-08-14 Thread Boyan Ding
Hi, Mod key is defined by weston configure, the default of which is Super (win key). You can also specify that in weston.ini. Refer to manpage of weston.ini(5) for details. Cheers, Boyan Ding On Thu, 2014-08-14 at 17:21 -0400, Hongze Zhao wrote: I am new to wayland and weston. I just built

[PATCH weston] cairo-util: Draw solid titlebar for frames with only buttons

2014-08-05 Thread Boyan Ding
Previously geometry was changed to leave space for titlebar if a frame has only buttons but no title. This patch fixes theme_render_frame to avoid transparent titlebar. Signed-off-by: Boyan Ding stu_...@126.com --- shared/cairo-util.c | 8 +--- shared/cairo-util.h | 5 - shared/frame.c

An status update of wayland-tracer - a wayland protocol dumper

2014-08-03 Thread Boyan Ding
format similar to WAYLAND_DEBUG, making the tool practical to use. People who are interested can visit the repository on github: https://github.com/dboyan/wayland-tracer and feedbacks are welcomed. Regards, Boyan Ding ___ wayland-devel mailing list

Re: [RFC wayland v2 0/2] Wayland protocol dumper

2014-07-25 Thread Boyan Ding
. I'll keep my code as clean as possible. My point is to keep code simple and not to make reusing code a burden. Regards, Boyan Ding [1] https://github.com/dboyan/wayland-tracer On Fri, 2014-07-25 at 15:53 +0300, Pekka Paalanen wrote: On Wed, 23 Jul 2014 16:21:19 +0800 Boyan Ding stu_...@126.com

Re: [RFC wayland v2 0/2] Wayland protocol dumper

2014-07-24 Thread Boyan Ding
00 00 You also got to have a running compositor. But this reminds me to check whether the connection is successful. Cheers, Boyan Ding ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo

[RFC wayland v2 2/2] Add a wayland protocol dumper wayland-tracer

2014-07-23 Thread Boyan Ding
Signed-off-by: Boyan Ding stu_...@126.com --- .gitignore | 1 + Makefile.am | 10 + configure.ac | 7 + src/tracer.c | 689 +++ 4 files changed, 707 insertions(+) create mode 100644 src/tracer.c diff --git a/.gitignore b/.gitignore

[RFC wayland v2 0/2] Wayland protocol dumper

2014-07-23 Thread Boyan Ding
), run shell wayland-tracer -- program arguments ... Also, EPOLLHUP is handled correctly in this version. The next step will be adding xml protocol parsing and wire data analysing according to protocol files. This will be much tougher but I hope I can finish that. Boyan Ding (2): connection

[RFC wayland v2 1/2] connection: Move definitions

2014-07-23 Thread Boyan Ding
wayland-tracer will use them. Signed-off-by: Boyan Ding stu_...@126.com --- src/connection.c | 18 +++--- src/wayland-private.h | 18 +- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/connection.c b/src/connection.c index f292853..79197c9

Re: [PATCH weston] xwayland: set surface_id to 0 when client resource is found

2014-07-20 Thread Boyan Ding
Only when reading through mails today did I find I had duplicated efforts [1], sorry. This patch is Reviewed-by: Boyan Ding stu_...@126.com [1] http://lists.freedesktop.org/archives/wayland-devel/2014-July/015943.html On Wed, 2014-07-02 at 15:00 -0700, Tyler Veness wrote: When Xwayland

[RFC wayland 0/2] Wayland protocol dumper

2014-07-19 Thread Boyan Ding
not very sure about details. Comments and suggestions are welcomed. Feel free to say something about whether it useful, where it is wrong, how it can improve, etc. Regards, Boyan Ding [1] http://lists.freedesktop.org/archives/wayland-devel/2014-April/014121.html Boyan Ding (2): connection: Move

[RFC wayland 2/2] Add a wayland protocol dumper wayland-tracer

2014-07-19 Thread Boyan Ding
Signed-off-by: Boyan Ding stu_...@126.com --- .gitignore | 1 + Makefile.am | 10 ++ configure.ac | 7 ++ src/tracer.c | 351 +++ 4 files changed, 369 insertions(+) create mode 100644 src/tracer.c diff --git a/.gitignore b

[RFC wayland 1/2] connection: Move some definitions

2014-07-19 Thread Boyan Ding
wayland-tracer will need them Signed-off-by: Boyan Ding stu_...@126.com --- src/connection.c | 18 +++--- src/wayland-private.h | 18 +- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/connection.c b/src/connection.c index f292853..79197c9

Re: wcap-snapshot

2014-07-15 Thread Boyan Ding
want a screenshot, you can use Mod+S in weston. Cheers, Boyan Ding ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [PATCH] gitignore: add ./message-test

2014-07-06 Thread Boyan Ding
Yeah, this is necessary, but please insert this line according to alphabetical order (i.e. after map-test). Cheers, Boyan Ding On Sun, 2014-07-06 at 22:10 +0800, Guangyu Zhang wrote: ./message-test is generated by libtool and should be ignored by git. --- .gitignore | 1 + 1 file changed, 1

[PATCH weston 1/2] xwm: Use cursor theme and size in weston.ini

2014-07-05 Thread Boyan Ding
to make it consistent with native wayland apps Signed-off-by: Boyan Ding stu_...@126.com --- xwayland/window-manager.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c index 2fb65b1..f64ef94 100644

[PATCH weston 2/2] xwm: check whether the picked seat can be NULL

2014-07-05 Thread Boyan Ding
The seat picked in weston_wm_window_handle_moveresize can sometimes be NULL when it is (somehow) triggered with all buttons released. This patch checks whether the seat is NULL to avoid NULL dereference. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=80837 Signed-off-by: Boyan Ding stu_

[PATCH 1/2] cairo-util: Fix geometry for frames with buttons but without title

2014-07-04 Thread Boyan Ding
the condition, making it titlebar is needed if a frame has title or has button(s), which makes more sense. Signed-off-by: Boyan Ding stu_...@126.com --- shared/frame.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/frame.c b/shared/frame.c index 35e6b65..aacca60 100644

[PATCH weston v2] shell: fix segfault in fullscreen binding

2014-06-25 Thread Boyan Ding
Commit 9aa8ce69 forgot to set shsurf-fullscreen_output in fullscreen_binding(), causing segfault when fullscreening using key bindings. This patch fixes that. https://bugs.freedesktop.org/show_bug.cgi?id=79828 Signed-off-by: Boyan Ding stu_...@126.com --- desktop-shell/shell.c | 1 + 1 file

[PATCH weston] desktop-shell: Don't resize into the panel

2014-06-25 Thread Boyan Ding
Previously we can resize windows into panel in weston. This patch puts a constraint in position when resizing just like what was done in moving to avoid resizing window into the panel. https://bugs.freedesktop.org/show_bug.cgi?id=80228 Signed-off-by: Boyan Ding stu_...@126.com --- desktop-shell

Re: [PATCH weston] desktop-shell: Don't resize into the panel

2014-06-25 Thread Boyan Ding
a constraint in position when resizing just like what was done in moving to avoid resizing window into the panel. https://bugs.freedesktop.org/show_bug.cgi?id=80228 Signed-off-by: Boyan Ding --- desktop-shell/shell.c | 35 ++- 1 file changed, 30 insertions(+), 5

Re: [PATCH weston] shell: fix segfault in fullscreen binding

2014-06-24 Thread Boyan Ding
On Tue, 2014-06-24 at 21:40 -0700, Jason Ekstrand wrote: Yes we should fix this. I have one question below. Actually I'm not very sure about that either, maybe we should ask @Jasper for suggestion. On Sat, Jun 7, 2014 at 2:40 AM, Boyan Ding stu_...@126.com wrote: Commit 9aa8ce69

Re: How to develop an application based on opengles

2014-06-23 Thread Boyan Ding
Hi, I think you can refer to this example code [1] in weston for ideas about how to initialize EGL in wayland, which I think is quite easy to understand. Regards, Boyan Ding [1] http://cgit.freedesktop.org/wayland/weston/tree/clients/simple-egl.c#n318 On Mon, 2014-06-23 at 11:13 +0800, Jacky

[PATCH] xdg-shell: Fix a typo in description

2014-06-22 Thread Boyan Ding
Signed-off-by: Boyan Ding stu_...@126.com --- protocol/xdg-shell.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/xdg-shell.xml b/protocol/xdg-shell.xml index 28add40..0327f40 100644 --- a/protocol/xdg-shell.xml +++ b/protocol/xdg-shell.xml @@ -304,7 +304,7

Re: Suggestions on implementing Wayland Protocol Dumper.

2014-06-09 Thread Boyan Ding
of implementation is that it not only help weston but may also help the development of other projects (e.g. you may even use it under Gnome on Wayland). This is my advice. Regards, Boyan Ding On Mon, 2014-06-09 at 11:17 +0530, Srivardhan wrote: Hi, The following are the ways in which a Protocol Dumper can

[PATCH weston] shell: fix segfault in fullscreen binding

2014-06-07 Thread Boyan Ding
Commit 9aa8ce69 'shell: Don't use the helper methods in xdg_shell implementations' forgot to set shsurf-fullscreen_optput in fullscreen_binding(), causing weston to segfault when fullscreen with the mod + shift + f binding. This patch fixed that issue. --- desktop-shell/shell.c | 6 ++ 1 file

Maximizing window after fullscreening it in weston desktop shell

2014-06-06 Thread Boyan Ding
misunderstandings. Thanks, Boyan Ding ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: Weston multitouch support?

2014-05-31 Thread Boyan Ding
Which backend are you running on? On Sun, 2014-06-01 at 02:03 +0100, José Expósito wrote: Hi all, I'm running a very simple QML multitouch example using MultiPointTouchArea, that works (more or less) on X11, here is the code: Rectangle { width: 400; height: 400

Re: Weston multitouch support?

2014-05-31 Thread Boyan Ding
if I run Weston as X client (weston command) or using weston-launch. I'm not sure how can I check the backend... El 01/06/2014 02:50, Boyan Ding stu_...@126.com escribió: Which backend are you running on? On Sun, 2014-06-01 at 02:03 +0100, José Expósito wrote

Re: [PATCH 1/2] cairo-util: Add frame_touch_motion support

2014-05-13 Thread Boyan Ding
appropriate actions (cancel button, destroy touch) will do. I wonder whether my ideas are appropriate. Regards, Boyan Ding ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

[PATCH] doc: Remove obsolete doxygen tags

2014-05-12 Thread Boyan Ding
--- doc/doxygen/wayland.doxygen.in | 28 1 file changed, 28 deletions(-) diff --git a/doc/doxygen/wayland.doxygen.in b/doc/doxygen/wayland.doxygen.in index dd98594..e64512f 100644 --- a/doc/doxygen/wayland.doxygen.in +++ b/doc/doxygen/wayland.doxygen.in @@ -310,22

Re: [PATCH 2/2] compositor-wayland: Add touch support

2014-05-09 Thread Boyan Ding
have touch hardware either. However I found a interesting project [1] on github, though I'm still figuring out how to use it. On Tue, May 6, 2014 at 9:46 PM, Boyan Ding stu_...@126.com wrote: Adding touch support to weston's nested wayland backend to make testing easier. https

[PATCH 0/2] weston: Add touch support to nested wayland backend

2014-05-06 Thread Boyan Ding
is welcomed. Boyan Ding (2): cairo-util: Add frame_touch_motion support compositor-wayland: Add touch support shared/cairo-util.h | 3 ++ shared/frame.c | 24 src/compositor-wayland.c | 95 3 files changed, 122 insertions

[PATCH 1/2] cairo-util: Add frame_touch_motion support

2014-05-06 Thread Boyan Ding
--- shared/cairo-util.h | 3 +++ shared/frame.c | 24 2 files changed, 27 insertions(+) diff --git a/shared/cairo-util.h b/shared/cairo-util.h index 4493b0d..7aebb65 100644 --- a/shared/cairo-util.h +++ b/shared/cairo-util.h @@ -211,6 +211,9 @@ void

[PATCH 2/2] compositor-wayland: Add touch support

2014-05-06 Thread Boyan Ding
Adding touch support to weston's nested wayland backend to make testing easier. https://bugs.freedesktop.org/show_bug.cgi?id=77769 --- src/compositor-wayland.c | 95 1 file changed, 95 insertions(+) diff --git a/src/compositor-wayland.c