[PATCH] xwayland: modify Makefile.am to clean up BUILD_SOURCES

2013-06-26 Thread zhiwen . wu
From: Alex Wu --- src/xwayland/Makefile.am |2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xwayland/Makefile.am b/src/xwayland/Makefile.am index 3a26cbd..82ad53d 100644 --- a/src/xwayland/Makefile.am +++ b/src/xwayland/Makefile.am @@ -33,4 +33,6 @@ BUILT_SOURCES =

[PATCH 3/3] wayland: Add cnp functionality for elementary entry widget.

2012-08-03 Thread zhiwen . wu
From: Alex Wu --- trunk/ecore/src/lib/ecore_wayland/Ecore_Wayland.h |1 + trunk/ecore/src/lib/ecore_wayland/ecore_wl_dnd.c |9 + trunk/elementary/src/lib/elm_cnp.c|5 +++-- trunk/elementary/src/lib/elm_entry.c | 12 4 files changed

[PATCH 2/3] elem_cnp: Add Copy and Paste support for wayland.

2012-08-03 Thread zhiwen . wu
From: Alex Wu Just support type of ELM_SEL_TYPE_CLIPBOARD. Use HAVE_ELEMENTARY_WAYLAND macro to build againt wayland engine, and use elm_win_wl_window_get() run-time engine check. --- trunk/elementary/src/lib/elm_cnp.c | 121 +++- 1 file changed, 119 insertions(+

[PATCH 1/3] ecore_wayland: Add Copy and Paste support

2012-08-03 Thread zhiwen . wu
From: Alex Wu Add a global Ecore_Wl_Dnd object to handle copy and paste. I think it is more appropriate to name this struct Ecore_Wl_Selection, which is responsible for both dnd and cnp. This patch just cover the copy and paste and not support "clear clipboard", due to wayland has no way to do th

[PATCH 0/3 v3] Add Copy and Paste support for wayland engine

2012-08-03 Thread zhiwen . wu
Changes for v2: 1. Get elementary entry cnp worked on wayland engine. 2. Rebase to commit http://svn.enlightenment.org/svn/e@74816 Changes from v1: 1. According to Robert's comments, in elm_cnp.c, add HAVE_ELEMENTARY_WAYLAND path to explicitly build against wayland engine, add runtime engine che

[PATCH 2/2 v2] elem_cnp: Add Copy and Paste support for wayland.

2012-08-01 Thread zhiwen . wu
From: Alex Wu Just support type of ELM_SEL_TYPE_CLIPBOARD. Use HAVE_ELEMENTARY_WAYLAND macro to build againt wayland engine, and use elm_win_wl_window_get() run-time engine check. --- trunk/elementary/src/lib/elm_cnp.c | 121 +++- 1 file changed, 119 insertions(+

[PATCH 1/2 v2] ecore_wayland: Add Copy and Paste support

2012-08-01 Thread zhiwen . wu
From: Alex Wu Add a global Ecore_Wl_Dnd object to handle copy and paste. I think it is more appropriate to name this struct Ecore_Wl_Selection, which is responsible for both dnd and cnp. This patch just cover the copy and paste and not support "clear clipboard", due to wayland has no way to do th

[PATCH 0/2 v2] Add Copy and Paste support for wayland engine

2012-08-01 Thread zhiwen . wu
Changes from v1: 1. According to Robert's comments, in elm_cnp.c, add HAVE_ELEMENTARY_WAYLAND path to explicitly build against wayland engine, add runtime engine checking. 2. Rebase to the latest code. The following changes since commit 9551f66bed1fb7dab7fdcadb175077ed2d34b783: [elm] Forgotte

[PATCH 2/2] elem_cnp: Add Copy and Paste support for wayland.

2012-07-26 Thread zhiwen . wu
From: Alex Wu Just support type of ELM_SEL_TYPE_CLIPBOARD. If not define HAVE_ELEMENTARY_X, the wayland path will be built. --- trunk/elementary/src/lib/elm_cnp.c | 119 +++- 1 file changed, 117 insertions(+), 2 deletions(-) diff --git a/trunk/elementary/src/lib

[PATCH 1/2] ecore_wayland: Add Copy and Paste support

2012-07-26 Thread zhiwen . wu
From: Alex Wu Add a global Ecore_Wl_Dnd object to handle copy and paste. I think it is more appropriate to name this struct Ecore_Wl_Selection, which is responsible for both dnd and cnp. This patch just cover the copy and paste and not support "clear clipboard", due to wayland has no way to do th

[PATCH 0/2] This patch set add Copy and Paste support for wayland backend.

2012-07-26 Thread zhiwen . wu
Ecore_Wayland: Test for a valid surface before we try to process the pointer_enter event. (2012-07-26 07:23:32 +) Alex Wu (2): ecore_wayland: Add Copy and Paste support elem_cnp: Add Copy and Paste support for wayl

[PATCH] evas/wayland_egl: Fix segfault when doing alpha setting in elementary.

2012-07-16 Thread zhiwen . wu
From: Alex Wu The current wayland_egl engine uses a global singleton EGLContext object to render context. All Evas_GL_Wl_Window objects, which wraps EGLSurface, share this object, so we have no chance to differentiate the frame buffer configuration for each EGLSurface. When calling elm_win_alpha

[PATCH] desktop-shell: Add shortcut support

2012-06-20 Thread zhiwen . wu
From: Alex Wu 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. --- clients/desktop-she

[PATCH] tablet-shell: Add actual actions for launcher.

2012-06-18 Thread zhiwen . wu
From: Alex Wu The launcher before in tablet-shell just draw the icon and will not activate a client. This patch makes the launcher as sub-widget of homescreen, and implements enter/leave/button/redraw hanler to do the actual client launching action. --- clients/tablet-shell.c | 112

[PATCH] tablet-shell: Fix compiling error for using stderr.

2012-06-14 Thread zhiwen . wu
From: Alex Wu Not including the stdio.h makes this compiling error. --- src/tablet-shell.c |1 + 1 file changed, 1 insertion(+) diff --git a/src/tablet-shell.c b/src/tablet-shell.c index 91b1514..56512f6 100644 --- a/src/tablet-shell.c +++ b/src/tablet-shell.c @@ -23,6 +23,7 @@ #include

[PATCH] Wayland: Fix not add input.

2012-05-23 Thread zhiwen . wu
From: Alex Wu wl_seat adopation patch didn't change the interface name from "wl_input_device" to "wl_seat" at global object listener handler, so that no input will be added. --- src/lib/ecore_wayland/ecore_wl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore

[PATCH demos 2/2] opengles2: Add es2gears_wayland target

2012-05-01 Thread zhiwen . wu
From: Alex Wu Since we already have wayland support in eglut, add a target for es2geares_wayland. --- src/egl/opengles2/Makefile.am |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/egl/opengles2/Makefile.am b/src/egl/opengles2/Makefile.am index c84d91d..41c1b80 1

[PATCH demos 1/2] eglut: Add wayland support

2012-05-01 Thread zhiwen . wu
From: Alex Wu This patch adds wayland support for eglut, so that the demos based on eglut can run on wayland platform. --- configure.ac | 14 src/egl/eglut/Makefile.am | 15 - src/egl/eglut/eglut_wayland.c | 135 + 3 file

[PULL demos] eglut: Add wayland support

2012-05-01 Thread zhiwen . wu
The following changes since commit ebe0ddf657903bef32a161dc66254fbf8725f986: util: add gl_wrap.h and glu_wrap.h to libutil_la_SOURCES (2012-04-23 08:21:43 -0600) Alex Wu (2): eglut: Add wayland support opengles2: Add es2gears_wayland target configure.ac | 14 +

[PATCH v3] shell: Fix not remove rotation for fullscreen surf

2012-04-26 Thread zhiwen . wu
From: Alex Wu This patch is for Bug 48906. It remove rotation when entering fullscreen and restore rotation when exiting. reversion history: v1: Remove rotation when entering fullscreen. v2: Add restoring rotation when exiting fullscreen. v3: Change the commit message into a more semantical sty

[PATCH v2] shell: Fix Bug 48906

2012-04-25 Thread zhiwen . wu
From: Alex Wu Remove rotation when entering fullscreen and restore rotation when exiting fullscreen. --- src/shell.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/shell.c b/src/shell.c index 9c844b5..6654167 100644 --- a/src/shell.c +++ b/src/shell.c

[PATCH] shell: Fix Bug 48906

2012-04-24 Thread zhiwen . wu
From: Alex Wu Rotation and then fullscreen leads to fullscreen display rotation. --- src/shell.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/shell.c b/src/shell.c index fd66462..1a206af 100644 --- a/src/shell.c +++ b/src/shell.c @@ -925,6 +925,12 @@ shell_su

[PATCH] compositor-drm: Remove an useless code line.

2012-04-18 Thread zhiwen . wu
From: Alex Wu --- src/compositor-drm.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 8aab840..837da8c 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -1319,7 +1319,6 @@ create_output_for_connector(struct

[PATCH 3/3] shell: Implement "driver" method of fullsceen.

2012-04-17 Thread zhiwen . wu
From: Alex Wu Switching display mode may happen when: 1. The fullscreen surface is at top most in fullscreen layer and with "driver" method. Shell will switch output mode to match the surface size. If no matched mode found, fall back to "fill" method. 2. The top fullscreen surface is destro

[PATCH 2/3] compositor-drm: Add switch_mode support.

2012-04-17 Thread zhiwen . wu
From: Alex Wu Implement switch_mode hook for drm backend. --- src/compositor-drm.c | 150 +- 1 files changed, 149 insertions(+), 1 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 4232f78..deda815 100644 --- a/src/compo

[PATCH 1/3] compositor: Add a switch_mode hook and a wrapper into the output.

2012-04-17 Thread zhiwen . wu
From: Alex Wu This allow each output backend to switch the display mode. It is useful to some applications like fullscreen game, xbmc. --- src/compositor-drm.c |1 + src/compositor-openwfd.c |1 + src/compositor-wayland.c |1 + src/compositor-x11.c |1 + src/compositor.c

[PATCH 0/3] implemented the "driver" mode fullscreen for drm backend.

2012-04-17 Thread zhiwen . wu
The following changes since commit e4faa2ab051aca454f3952f458dac42491e54954: compositor: init shell after xserver (2012-04-16 16:38:30 -0400) are available in the git repository at: g...@gitorious.org:wayland-for-krh/weston.git fs-driver Alex Wu (3): compositor: Add a switch_mode hook

[PATCH 3/3] shell: set black surface alpha properly in switcher_next()

2012-04-01 Thread zhiwen . wu
From: Alex Wu Make the black surfaces semitransparent when switching surface, and if associated fullscreen surface is chosen, make black surface opaque. --- src/shell.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/shell.c b/src/shell.c index a4cf0b4..feb38

[PATCH 2/3] shell: Add fullscreen path into activate()

2012-04-01 Thread zhiwen . wu
From: Alex Wu Use shell_stack_fullscreen() to raise fullscreen surface in activate(), and before activate() a regular surface, move all the fullscreen surfaces from fullscreen_layer to toplevel_layer. Also add a void *private into struct wesont_surface since we already have a configure() vfunc.

[PATCH 1/3] wayland-utils: add wl_list_for_each_reverse_safe macro.

2012-04-01 Thread zhiwen . wu
From: Alex Wu Add the safe version for wl_list_for_each_reverse --- src/wayland-util.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/wayland-util.h b/src/wayland-util.h index d9e13e6..642a04b 100644 --- a/src/wayland-util.h +++ b/src/wayland-util.h @@ -140,6

[PATCH 0/3] fullscreen support for activate and switcher_next

2012-04-01 Thread zhiwen . wu
The patch set add fullscreen support into activate() and switcher_next(). According to krh's comments, use configre vfunc pointer to check black surface. This patch set consists wayland part and weston part. For wayland part: The following changes since commit 3cddb3c692acd3536a7cc8542a29f0cc3c0ac

[PATCH] shell: Fix crash when mapping a transient surface.

2012-03-14 Thread zhiwen . wu
From: Alex Wu Not set parent in set_transient. --- src/shell.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/shell.c b/src/shell.c index 765b0a4..bf40b79 100644 --- a/src/shell.c +++ b/src/shell.c @@ -448,6 +448,7 @@ shell_surface_set_transient(struct wl_client *cl

[PATCH v2 4/4] shell: Implement "driver" method of fullsceen.

2012-03-13 Thread zhiwen . wu
From: Alex Wu Switching display mode may happen when: 1. The fullscreen surface is at top most in fullscreen layer and with "driver" method. Shell will switch output mode to match the surface size. If no matched mode found, fall back to "fill" method. 2. The top fullscreen surface is destro

[PATCH v2 3/4] compositor-drm: Add switch_mode support.

2012-03-13 Thread zhiwen . wu
From: Alex Wu Implement switch_mode hook for drm backend. --- src/compositor-drm.c | 197 +- 1 files changed, 196 insertions(+), 1 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index b01879f..e81b5a4 100644 --- a/src/compo

[PATCH v2 2/4] compositor: Add a switch_mode hook and a wrapper

2012-03-13 Thread zhiwen . wu
From: Alex Wu This allow each output backend to switch the display mode. It is useful to some applications like fullscreen game, xbmc. --- src/compositor-drm.c |1 + src/compositor-openwfd.c |1 + src/compositor-wayland.c |1 + src/compositor-x11.c |1 + src/compositor.c

[PATCH v2 1/4] shell: add fullscreen path for activate() and switcher

2012-03-13 Thread zhiwen . wu
From: Alex Wu For activate(), stack the surface atop fullscreen layer instead of toplevel layer. For switcher, involve the fullscreen surfaces into surface iteration, and make fullscreen surface and its black surface transparent if necessary. --- src/shell.c | 70 ++

[PATCH v2 0/4] fullscreen "driver" method implamentation patches

2012-03-13 Thread zhiwen . wu
From: Alex Wu Changes from v1: a. Improve failed path in drm_output_switch_mode() according to Herrmann's comments. b. Doing mode-set only after the fullscreen window has been raised on top of everything. c. Add struct weston_mode *origin into struct weston_output to store the original

[PATCH 1/2] shell: Fix setting a random position when buffer size changed.

2012-03-13 Thread zhiwen . wu
From: Alex Wu When the configure() is triggered by a change of buffer size, a toplevel surface which has not ever been switched to maximazied or fullscreen will set a random position. Modified the position restoring logic for toplevel surface. Store the surface position when it switches from top

[PATCH] shell: Fix 2 switcher crashes.

2012-03-12 Thread zhiwen . wu
From: Alex Wu In case of no regular window, switcher will crash in switch_next() due to "next == NULL" and in switcher_destroy() due to "switcher->current == NULL". --- src/shell.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/shell.c b/src/shell.c index 765b0

[PATCH] compositor: Fix pick an incorrect surface due to dirty surface_list

2012-03-08 Thread zhiwen . wu
From: Alex Wu When a new toplevel window is activated and positioned under the cursor, the pointer focus still on the previous window. The botton event can not deliver to the new window. The root cause is that weston_surface_restack() change the surface stack but not update the weston_compositor:

[PATCH 3/3] shell: Implement "driver" method of fullsceen.

2012-03-07 Thread zhiwen . wu
From: Alex Wu Using the switch_mode hook to change the display mode. --- src/shell.c | 34 +- 1 files changed, 33 insertions(+), 1 deletions(-) diff --git a/src/shell.c b/src/shell.c index 5d2c239..c8cb41e 100644 --- a/src/shell.c +++ b/src/shell.c @@ -121,6 +1

[PATCH 2/3] compositor-drm: Add switch_mode support.

2012-03-07 Thread zhiwen . wu
From: Alex Wu Implement switch_mode hook for drm back end. --- src/compositor-drm.c | 143 +- 1 files changed, 142 insertions(+), 1 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 1b0a9b9..e9583fe 100644 --- a/src/comp

[PATCH 1/3] compositor: Add an switch_mode hook to the output

2012-03-07 Thread zhiwen . wu
From: Alex Wu This allow each output back end to switch the display mode. It is useful to some applications (e.g. fullscreen game, xbmc) --- src/compositor-drm.c |1 + src/compositor-openwfd.c |1 + src/compositor-wayland.c |1 + src/compositor-x11.c |1 + src/compositor.

[PATCH 0/3] Add supporting for driver method of fullscreen

2012-03-07 Thread zhiwen . wu
This patch series implement the "driver" method of fullscreen for drm backend. The following changes since commit 60c4954b8a0667ad5e5f65110d0342b171f3a2a2: shell: Put popups and transients on top of their parent are available in the git repository at: g...@gitorious.org:wayland-for-krh/westo

[PATCH] shell: Fix segment fault when clicking to activate a NULL pointer_focus

2012-03-04 Thread zhiwen . wu
From: Alex Wu This can happen for instance running a toytoolkit application, launching the popup menu and then clicking on a surface that does not belong to the client that create the popup surface. --- src/shell.c | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff --

[PATCH] shell: Fix not destroy black surface when fullscreen surface exit abnomally.

2012-03-04 Thread zhiwen . wu
From: Alex Wu When a client with fullscreen surface displayed was aborted by Ctrl-C, the black surface still be there. Destroy the black surface in destroy_shell_surface(). --- src/shell.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/shell.c b/src/shell.c index

[PATCH 2/2] shell: Avoid unnecessary raising for fullscreen surface in configure()

2012-03-02 Thread zhiwen . wu
From: Alex Wu If configure() is triggered by a change of buffer size, and the fullscreen surface has alreay switched from non-fullscreen. An unnecessary shell_stack_fullscreen() will be called. --- src/shell.c | 17 +++-- 1 files changed, 11 insertions(+), 6 deletions(-) diff --gi

[PATCH 1/2] shell: Fix setting a random position when buffer size changed.

2012-03-02 Thread zhiwen . wu
From: Alex Wu When the configure() is triggered by a change of buffer size, a toplevel surface which has not ever been switched to maximazied or fullscreen will set a random position. Modified the position restoring logic for toplevel surface. Store the surface position when it switches from top

[PATCH 1/2] shell: Add implementation of fullscreen.

2012-02-29 Thread zhiwen . wu
From: Alex Wu Undo fullscreen in shell_unset_fullscreen(), do all the stacking order in shell_stack_fullscreen(), and configure black surface, method in shell_configure_fullscreen(). Signed-off-by: Alex Wu Signed-off-by: Juan Zhao --- src/shell.c | 218 +++

[fullscreen-v8 PATCH 2/3] shell: Add implementation of fullscreen.

2012-02-28 Thread zhiwen . wu
From: Alex Wu All the fullscreen things (black surface, raise atop panels, transform, positioning) are handled in map() or configure(). Signed-off-by: Alex Wu Signed-off-by: Juan Zhao --- src/shell.c | 231 ++- 1 files changed, 214 ins

[fullscreen-v8 PATCH 1/3] compositor: Export functions and add weston_suface::force_configure for fullscreen

2012-02-28 Thread zhiwen . wu
From: Alex Wu This will facilitate the implementation of fullscreen. Signed-off-by: Alex Wu --- src/compositor.c | 16 ++-- src/compositor.h |9 + 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index b12c583..022c7a

[PATCH 3/3] clients: Add a sample app to test fullscreen effect.

2012-02-25 Thread zhiwen . wu
From: Alex Wu F12: default method F11: scale method F10: driver method F9: fill method F7: set toplevel --- clients/Makefile.am |6 +- clients/simple-rect.c | 726 + 2 files changed, 731 insertions(+), 1 deletions(-) create mode 100644 cl

[PATCH 2/3] shell: Add implementation of fullscreen.

2012-02-25 Thread zhiwen . wu
From: Alex Wu For now, fullscreen surface will be atop panels and with a black surface underlying it. Only the WL_SHELL_SURFACE_FULLSCREEN_METHOD_SCALE method implemented in this patch. For other methods, just center on the surface. --- src/shell.c | 207 ++

[PATCH 1/3] compositor: Export 3 functions from compositor.c

2012-02-25 Thread zhiwen . wu
From: Alex Wu This will facilitate the implementation of fullscreen. --- src/compositor.c |6 +++--- src/compositor.h | 10 ++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index b12c583..3467874 100644 --- a/src/compositor.c ++

[PATCH] shell: Fix never map fullscreen/transient surface.

2012-02-21 Thread zhiwen . wu
From: Alex Wu If client send set_fullscreen/set_transient request before the first attach, compositor has no chance to map the surface due to "if (es->output == NULL)". You can pull it from git://gitorious.org/wayland-for-krh/weston.git map-bug --- src/shell.c |8 +++

[PATCH] compositor-drm: Fix output still scanout framebuffer after the scanout client was interrupted.

2012-02-16 Thread zhiwen . wu
From: Alex Wu If the scanout client was interrupted (e.g. by Ctrl-C), compositor-drm.c::page_flip_handler() was not guaranteed to be invoked for the last scanout drmModePageFlip(), so that pending_fs_surf_fb_id has no chance to reset to 0, and the output will still scano

[PATCH] [RFC]Shell: Hide panels when compositor has a top fullscreen surface.

2012-02-14 Thread zhiwen . wu
From: Alex Wu Hi krh This patch is the implementation of the method 3 of the proposal(http://lists.freedesktop.org/archives/wayland-devel/2012-February/002085.html) for handling panels when compositor has a top fullscreen regular surface, and rebases on commit 8fb8d3b1b5b4ef7836a61f111ae