[PATCH v3] shell: moving drag surface refine

2012-08-07 Thread juan . j . zhao
From: Juan Zhao When applications not directly based on toytoolkit, like simple-egl, efl applications is grabbed and moved, they may be moved to the place under the panel. Then they could not be grabbed again. Don't allow the pointer's bounding box move across the shell's active_regions. v3: use

[PATCH] image: segfault when the file doesn't exist

2012-08-06 Thread juan . j . zhao
From: Juan Zhao don't create a window when the file doesn't exist to fix the bug https://bugs.freedesktop.org/show_bug.cgi?id=52450 --- clients/image.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/clients/image.c b/clients/image.c index 711f0d8..c289d76 100644 --- a/clients/image.c

[PATCH 12/12] tablet-shell: row and column number could be manageable

2012-08-03 Thread juan . j . zhao
From: Ning Tang Making icon-size, layout's row and column number manageable in weston-tablet.ini. Removing click restriction when mouse dragging. Signed-off-by: Tang Ning --- clients/tablet-shell.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --gi

[RFC PATCH 11/12] tablet-shell: add weston-tablet.ini

2012-08-03 Thread juan . j . zhao
From: Juan Zhao Signed-off-by: Juan Zhao --- weston-tablet.ini | 69 +-- 1 file changed, 31 insertions(+), 38 deletions(-) diff --git a/weston-tablet.ini b/weston-tablet.ini index 2ef5ab6..9848ae2 100644 --- a/weston-tablet.ini +++ b/weston-t

[RFC PATCH 10/12] tablet-shell: update config file

2012-08-03 Thread juan . j . zhao
From: Juan Zhao Signed-off-by: Juan Zhao --- clients/tablet-shell.c | 4 +-- src/compositor.c | 6 +++- weston-tablet.ini | 83 ++ 3 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 weston-tablet.ini diff --git a/c

[RFC PATCH 08/12] tablet-shell: support the surface who don't response the event

2012-08-03 Thread juan . j . zhao
From: Juan Zhao Add a black surface under the application's surface and center it on screen. Signed-off-by: Tang Ning --- clients/tablet-shell.c | 26 +++--- src/tablet-shell.c | 210 - 2 files changed, 173 insertions(+), 63 deletions(-) di

[RFC PATCH 09/12] tablet-shell: key binding conflict

2012-08-03 Thread juan . j . zhao
From: Ning Tang Remove confliction in key shortcut, so now mod+R(record video) can be used in tablet-shell. Signed-off-by: Tang Ning --- src/tablet-shell.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tablet-shell.c b/src/tablet-shell.c index 55522be..774488b 1

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

2012-08-03 Thread juan . j . zhao
From: Juan Zhao Signed-off-by: Juan Zhao --- clients/tablet-shell.c | 5 +++-- src/tablet-shell.c | 48 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/clients/tablet-shell.c b/clients/tablet-shell.c index 651aa67..37c0a48 10

[RFC PATCH 06/12] tablet-shell: Applications can run on tablet

2012-08-03 Thread juan . j . zhao
From: Juan Zhao Add a event in tablet-client. When a client is connected to server, the set_fullscreen event would be sent. and client will call shell_surface's set_fullscreen method to be fullscreen. Client application like dnd clickdot can run on tablet-shell. listener is added in window.c and

[RFC PATCH 05/12] tablet-shell: Add trash function when dragging launchers.

2012-08-03 Thread juan . j . zhao
From: Ning Tang Show a trash image when dragging the launcher. If launcher is upon trash, it will be translucent and release it will cause the icon as well as tag in weston.ini be deleted. Signed-off-by: Li Chen Signed-off-by: Yi Yuan Signed-off-by: Ning Tang --- clients/tablet-

[RFC PATCH 04/12] tablet-shell: Make launchers draggable.

2012-08-03 Thread juan . j . zhao
From: Ning Tang The determination is occurred in launcher motion function. If the launcher is pressed some time, it will create the drag surface. That launcher's icon would follow cursor. Signed-off-by: Li Chen Signed-off-by: Yi Yuan Signed-off-by: Ning Tang --- clients/tablet-s

[RFC PATCH 03/12] tablet-shell: Making the layout draggable and have sliding effect.

2012-08-03 Thread juan . j . zhao
From: Ning Tang Use frame callback to move layout and thus making layout move at a speed. Also button and motion function will record the offset. Signed-off-by: Li Chen Signed-off-by: Yi Yuan Signed-off-by: Ning Tang --- clients/tablet-shell.c | 167 +

[RFC PATCH 02/12] tablet-shell: Draw layout and launchers on it.

2012-08-03 Thread juan . j . zhao
From: Ning Tang Layout add redraw function to set allocation for launchers. Signed-off-by: Li Chen Signed-off-by: Yi Yuan Signed-off-by: Ning Tang --- clients/tablet-shell.c | 177 +++-- 1 file changed, 141 insertions(+), 3

[ RFC PATCH 01/12] tablet-shell: Add layout on home screen.

2012-08-03 Thread juan . j . zhao
From: Ning Tang Add a structure of layout which is between homescreen and launchers. The configuration of layout is also included. Signed-off-by: Li Chen Signed-off-by: Yi Yuan Signed-off-by: Ning Tang --- clients/tablet-shell.c | 67 +

[PATCH v2] shell: moving drag surface refine

2012-07-31 Thread juan . j . zhao
From: Juan Zhao When applications not directly based on toytoolkit, like simple-egl, efl applications is grabbed and moved, they may be moved to the place under the panel. Then they could not be grabbed again. Don't allow the pointer's bounding box move across the shell's active_regions. One mor

[PATCH] shell: moving drag surface refine

2012-07-27 Thread juan . j . zhao
From: Juan Zhao When applications not directly based on toytoolkit, like simple-egl, efl applications is grabbed and moved, they may be moved to the place under the panel. Then they could not be grabbed again. Don't allow the pointer's bounding box move across the desktop's viewport. Signed-off-

[PATCH 3/3] shell: avoid unnecessary busy cursor sending when not-responsing-ping client

2012-07-17 Thread juan . j . zhao
From: Juan Zhao When the client didn't response to ping event in time, the server will do "set_busy_cursor" again and again. In fact it should only need to set it at the first time. Because handle_pointer_focus could help to set it, when the application was focused. Signed-off-by: Juan Zhao

[PATCH 2/3] shell: add panel height limiation when moving a window

2012-07-17 Thread juan . j . zhao
From: Juan Zhao When applications not directly based on toytoolkit, like simple-egl, efl applications is grabbed and moved, they may be moved to the place under the panel. Then they could not be grabbed again. Add panel height limitation when configuring the surface new places. Signed-off-by: Ju

[PATCH 1/3] shell:slight coding style refine

2012-07-17 Thread juan . j . zhao
From: Juan Zhao combine several "if" conditions Signed-off-by: Juan Zhao --- src/shell.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/shell.c b/src/shell.c index 40cef14..613304f 100644 --- a/src/shell.c +++ b/src/shell.c @@ -913,12 +913,9 @@ ping_handler(st

[PATCH] shell: resolve one random endless loop issue

2012-07-16 Thread juan . j . zhao
From: Juan Zhao When we're launching applications, we meet weston random unresponsive issue. Regarding the backtrace, it is caused by set_busy_cursor->shell_grab_start-> wl_pointer_set_focus->wl_signal_emit->handle_pointer_focus->set_busy_cursor. The busy cursor will be set by ping_timeout_handl

[PATCH v1] shell: avoid endless sending event when meeting hanged-not-exited client

2012-07-11 Thread juan . j . zhao
From: Juan Zhao When the client was hanged and not responsible for a long time, the server will generate endless and useless "set_busy_cursor" related events. And finally, weston crashed, with error message:" read error from connection 0x823b560: Connection reset by peer (104) read error: C

[PATCH updated] shell: avoid endless sending event when meeting hanged-not-exited client

2012-07-10 Thread juan . j . zhao
From: Juan Zhao When the client was hanged and not responsible for a long time, the server will generate endless and useless "set_busy_cursor" related events. And finally, weston crashed, with error message:"read error from connection 0x823b560: Connection reset by peer (104) read error: C

[PATCH] shell: avoid endless sending event when meeting hanged-not-exited client

2012-07-10 Thread juan . j . zhao
From: Juan Zhao When the client was hanged and not responsible for a long time, the server will generate endless and useless "set_busy_cursor" related events. And finally, weston crashed, with error message:"read error from connection 0x823b560: Connection reset by peer (104) read error: C

[PATCH] shell: correct the member name of getting panel height

2012-07-09 Thread juan . j . zhao
From: Juan Zhao It does not get the correct panel height for now. The memeber of list to read should be layer_link not link now. Signed-off-by: Juan Zhao --- src/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell.c b/src/shell.c index 2cc0139..66c9d64 100644

[PATCH] elementary_test:clock couldn't be maxmised

2012-07-06 Thread juan . j . zhao
From: Juan Zhao On wayland, elementary_test couldn't be maximised. It's because of the clock window's weight is 0. We should set its weight in the application side. --- trunk/elementary/src/bin/test_clock.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/trunk/elementary

[PATCH] tablet-shell client:fix one seg-fault error

2012-06-20 Thread juan . j . zhao
From: Juan Zhao When the icon provided in weston.ini is not available, it will report a segfault error. Check the icon at first. backtrace: *INT_cairo_surface_status (surface=0x0) at cairo-surface.c:259 259 { (gdb) bt #0 *INT_cairo_surface_status (surface=0x0) at cairo-surface.c:259 #1 0

[PATCH v2 2/2] shell-animation: add conf option in shell

2012-04-25 Thread juan . j . zhao
From: Juan Zhao Now we can choose zoom or fade in weston.ini to fulfill and customize the user experence easier. Signed-off-by: Juan Zhao --- src/compositor.h |8 src/shell.c | 38 +- weston.ini |2 ++ 3 files changed, 47 insert

[PATCH v2 1/2] animation: add fading-in animation

2012-04-25 Thread juan . j . zhao
From: Juan Zhao To ful-fill user experience, add the fading-in animation when mapping a window. v2: update that westom_surface_damage to repaint remove that transform part in fade struct Signed-off-by: Juan Zhao --- src/util.c | 85 ++

[PATCH 2/2] shell-animation: add conf option in shell

2012-04-24 Thread juan . j . zhao
From: Juan Zhao Now we can choose zoom or fade in weston.ini to fulfill and customize the user experence easier. Signed-off-by: Juan Zhao --- src/compositor.h |8 src/shell.c | 38 +- weston.ini |2 ++ 3 files changed, 47 insert

[PATCH 1/2] animation: add fading-in animation

2012-04-24 Thread juan . j . zhao
From: Juan Zhao To ful-fill user experience, add the fading-in animation when mapping a window. Signed-off-by: Juan Zhao --- src/util.c | 89 1 files changed, 89 insertions(+), 0 deletions(-) diff --git a/src/util.c b/src/util.c i

[weston PATCH] conf: add K_OFF check in autoconf

2012-04-13 Thread juan . j . zhao
From: Juan Zhao weston tty need to use K_OFF which is added in the kernel on linux-2.6.39. add this check in the configure stage. Bug Fix for https://bugs.freedesktop.org/show_bug.cgi?id=48579 Signed-off-by: Juan Zhao Reported-by: Shuang He --- configure.ac |3 +++ 1 files changed, 3 in

[weston PATCH v6 7/7] clients:add the test case for set_fullscreen

2012-02-16 Thread juan . j . zhao
From: Juan Zhao F12:default F11:scale F10:driver F9:fill F7: set toplevel to back --- clients/Makefile.am |6 +- clients/simple-rect.c | 681 + 2 files changed, 686 insertions(+), 1 deletions(-) create mode 100644 clients/simple-rect.c dif

[weston PATCH v6 6/7] shell: fix the following issues for fullscreen

2012-02-16 Thread juan . j . zhao
From: Juan Zhao --- src/shell.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/shell.c b/src/shell.c index 1d95313..9ef666f 100644 --- a/src/shell.c +++ b/src/shell.c @@ -71,7 +71,6 @@ struct wl_shell { } screensaver; }; -/*FIXME:Using bit flag

[weston PATCH v6 5/7] compostior:update the drm backend fullscreen paint part

2012-02-16 Thread juan . j . zhao
From: Juan Zhao --- src/compositor-drm.c | 15 +-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 623799f..d94ef5c 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -149,7 +149,7 @@ drm_output_repaint(

[weston PATCH v6 4/7] shell:update the scale and fill method

2012-02-16 Thread juan . j . zhao
From: Juan Zhao --- src/compositor.h |2 ++ src/shell.c | 30 +- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/src/compositor.h b/src/compositor.h index aa62c81..94f5cc3 100644 --- a/src/compositor.h +++ b/src/compositor.h @@ -292,6 +292,8

[weston PATCH v6 3/7] Shell: Hide panels when we have a top fullscreen surface.

2012-02-16 Thread juan . j . zhao
From: Zhiwen Wu 1.Add a struct wl_list wl_shell::hidden_panels to store the hidden panels. 2.Add a hook weston_shell:prepare_repaint to do the stacking adjustment before output repainting. 3.In the hook, check that if we had a top and fullscreen surface. If yes, remove the panel surface fr

[weston PATCH v6 2/7] shell:update default method

2012-02-16 Thread juan . j . zhao
From: Juan Zhao --- src/shell.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/shell.c b/src/shell.c index b77cef3..e0c8f07 100644 --- a/src/shell.c +++ b/src/shell.c @@ -1303,10 +1303,6 @@ weston_surface_set_fullscreen(struct weston_surface *surface)

[weston PATCH v6 1/7] compositor, shell: add fullscreen implementation shell part

2012-02-16 Thread juan . j . zhao
From: Juan Zhao --- clients/window.c |3 +- src/compositor-drm.c | 10 - src/compositor.c |5 ++- src/compositor.h | 11 +- src/shell.c | 97 +- 5 files changed, 103 insertions(+), 23 deletions(-) diff --

[wayland PATCH v6] add fullscreen protocol

2012-02-16 Thread juan . j . zhao
From: Juan Zhao Map the surface as a fullscreen surface. On the output the surface is assigned to. Leaving it to NULL will allow the compositor to choose one output. The client can use different fulllscreen method to fix the size mismatch issue: default, scale, driver and fill. Hints to indicate

[PATCH or PULL v6] add fullscreen protocol and implementation

2012-02-16 Thread juan . j . zhao
From: Juan Zhao v6: rebase the fullscreen part, we implemented default, scale, and fill method. For that window stacking part, these patches are still based on current stacking method. We can discuss in some other thread to discuss the window stacking method: how and when, and what's

[wayland PATCH] silence the warning

2012-02-13 Thread juan . j . zhao
From: Juan Zhao scanner.c:142:42: warning connection.c:529:9: warning connection.c:559:10: warning --- src/connection.c |4 ++-- src/scanner.c|2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/connection.c b/src/connection.c index 4ac5bf8..746f445 100644 --- a/

[weston PATCH v11 3/3] clients: add the test case for set_maximised

2012-02-13 Thread juan . j . zhao
From: Juan Zhao F8: set maximised F7: set toplevel to back --- clients/Makefile.am |6 +- clients/simple-rect.c | 646 + 2 files changed, 651 insertions(+), 1 deletions(-) create mode 100644 clients/simple-rect.c diff --git a/clients/Makef

[weston PATCH v11 2/3] shell: add the set_maximised implementation

2012-02-13 Thread juan . j . zhao
From: Juan Zhao --- src/shell.c | 96 +++--- 1 files changed, 91 insertions(+), 5 deletions(-) diff --git a/src/shell.c b/src/shell.c index 66c4f01..cd7a13f 100644 --- a/src/shell.c +++ b/src/shell.c @@ -81,6 +81,7 @@ enum shell_surface_type

[protocol PATCH v11] add set_maximised protocol

2012-02-13 Thread juan . j . zhao
From: Juan Zhao A request from the client to notify the compositor the maximised operation. The compositor will reply with a configure event telling the expected new surface size. The operation is completed on the next buffer attach to this surface. A maximised client will fill the fullscreen

[PATCH or PULL v11 0/3] set_maximised implemetation protocol + weston

2012-02-13 Thread juan . j . zhao
From: Juan Zhao v6: I rebase the set_maximised work at first. Because it is independed with fullscreen protocol. v7: update the protocol comments remove some unnecessary printf add output parameter, only the bound output can be set maximised to move the geometry calculation to map an

[weston PATCH v10 2/2] add the test case for set_maximised

2012-02-09 Thread juan . j . zhao
From: Juan Zhao F8: set maximised F7: set toplevel to back --- clients/Makefile.am |6 +- clients/simple-rect.c | 647 + 2 files changed, 652 insertions(+), 1 deletions(-) create mode 100644 clients/simple-rect.c diff --git a/clients/Makef

[weston PATCH v10 1/2] add the set_maximised implementation

2012-02-09 Thread juan . j . zhao
From: Juan Zhao --- src/shell.c | 99 --- 1 files changed, 94 insertions(+), 5 deletions(-) diff --git a/src/shell.c b/src/shell.c index 53b192c..d7c2476 100644 --- a/src/shell.c +++ b/src/shell.c @@ -81,6 +81,7 @@ enum shell_surface_typ

[protocol PATCH v10] add set_maximised protocol

2012-02-09 Thread juan . j . zhao
From: Juan Zhao A request from the client to notify the compositor the maximised operation. The compositor will reply with a configure event telling the expected new surface size. The operation is completed on the next buffer attach to this surface. A maximised client will fill the fullscreen

[PATCH v10 0/3] set_maximised implemetation protocol + weston

2012-02-09 Thread juan . j . zhao
From: Juan Zhao v6: I rebase the set_maximised work at first. Because it is independed with fullscreen protocol. v7: update the protocol comments remove some unnecessary printf add output parameter, only the bound output can be set maximised to move the geometry calculation to map an

[weston PATCH v9 2/2] add the test case for set_maximised

2012-02-08 Thread juan . j . zhao
From: Juan Zhao F8: set maximised F7: set toplevel to back --- clients/Makefile.am |6 +- clients/simple-rect.c | 647 + 2 files changed, 652 insertions(+), 1 deletions(-) create mode 100644 clients/simple-rect.c diff --git a/clients/Makef

[weston PATCH v9 1/2] add the set_maximised implementation

2012-02-08 Thread juan . j . zhao
From: Juan Zhao --- src/shell.c | 89 ++- 1 files changed, 88 insertions(+), 1 deletions(-) diff --git a/src/shell.c b/src/shell.c index 53b192c..229a027 100644 --- a/src/shell.c +++ b/src/shell.c @@ -81,6 +81,7 @@ enum shell_surface_typ

[protocol PATCH v9] add set_maximised protocol

2012-02-08 Thread juan . j . zhao
From: Juan Zhao A request from the client to notify the compositor the maximised operation. The compositor will reply with a configure event telling the expected new surface size. The operation is completed on the next buffer attach to this surface. A maximised client will fill the fullscreen

[PATCH v9 0/3] set_maximised implemetation protocol + weston

2012-02-08 Thread juan . j . zhao
From: Juan Zhao v6:I rebase the set_maximised work at first. Because it is independed with fullscreen protocol. v7:update the protocol comments remove some unnecessary printf add output parameter, only the bound output can be set maximised to move the geometry calculation to map and con

[weston PATCH v8 2/2] add the test case for set_maximised

2012-02-07 Thread juan . j . zhao
From: Juan Zhao F8: set maximised F7: set toplevel to back --- clients/Makefile.am |6 +- clients/simple-rect.c | 647 + 2 files changed, 652 insertions(+), 1 deletions(-) create mode 100644 clients/simple-rect.c diff --git a/clients/Makef

[weston PATCH v8 1/2] add the set_maximised implementation

2012-02-07 Thread juan . j . zhao
From: Juan Zhao --- src/shell.c | 100 +++ 1 files changed, 100 insertions(+), 0 deletions(-) diff --git a/src/shell.c b/src/shell.c index 53b192c..ae66d3d 100644 --- a/src/shell.c +++ b/src/shell.c @@ -81,6 +81,7 @@ enum shell_surface_ty

[protocol PATCH v8] add set_maximised protocol

2012-02-07 Thread juan . j . zhao
From: Juan Zhao A request from the client to notify the compositor the maximised operation. The compositor will reply with a configure event telling the expected new surface size. The operation is completed on the next buffer attach to this surface. A maximised client will fill the fullscreen

[PATCH v8 0/3] set_maximised implemetation protocol + weston

2012-02-07 Thread juan . j . zhao
From: Juan Zhao v6:I rebase the set_maximised work at first. Because it is independed with fullscreen protocol. v7:update the protocol comments remove some unnecessary printf add output parameter, only the bound output can be set maximised to move the geometry calculation to map and con

[weston PATCH v7 2/2] add the test case for set_maximised

2012-02-06 Thread juan . j . zhao
From: Juan Zhao F9: set maximised F8: set toplevel to back --- clients/Makefile.am |6 +- clients/simple-rect.c | 648 + 2 files changed, 653 insertions(+), 1 deletions(-) create mode 100644 clients/simple-rect.c diff --git a/clients/Makef

[weston PATCH v7 1/2] add the set_maximised implementation

2012-02-06 Thread juan . j . zhao
From: Juan Zhao --- src/shell.c | 73 +++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/src/shell.c b/src/shell.c index d15c8e2..e6aeeae 100644 --- a/src/shell.c +++ b/src/shell.c @@ -81,6 +81,7 @@ enum shell_surface_typ

[protocol PATCH v7] add set_maximised protocol

2012-02-06 Thread juan . j . zhao
From: Juan Zhao A request from the client to notify the compositor the maximised operation. The compositor will reply with a configure event telling the expected new surface size. The operation is completed on the next buffer attach to this surface. A maximised client will fill the fullscreen

[PATCH v7 0/3] set_maximised implemetation protocol + weston

2012-02-06 Thread juan . j . zhao
From: Juan Zhao v6:I rebase the set_maximised work at first. Because it is independed with fullscreen protocol. v7:update the comments remove some unnecessary printf add output parameter, only the bound output can be set maximised to move the geometry calculation to map and configure y

[weston PATCH v6 2/2] add the test case for set_maximised

2012-02-03 Thread juan . j . zhao
From: Juan Zhao F9: set maximised F8: set toplevel to back --- clients/Makefile.am |6 +- clients/simple-rect.c | 654 + 2 files changed, 659 insertions(+), 1 deletions(-) create mode 100644 clients/simple-rect.c diff --git a/clients/Makef

[weston PATCH v6 1/2] add implementation for set_maximised

2012-02-03 Thread juan . j . zhao
From: Juan Zhao --- src/shell.c | 53 + 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/src/shell.c b/src/shell.c index d15c8e2..48f1ceb 100644 --- a/src/shell.c +++ b/src/shell.c @@ -417,6 +417,58 @@ get_default_output(struct

[PATCH 0] set_maximised implemetation v6 protocol + weston

2012-02-03 Thread juan . j . zhao
From: Juan Zhao I rebase the set_maximised work at first. Because it is independed with fullscreen protocol. --- protocol/wayland.xml |8 11 1 files changed, 8 insertions(+), 0 deletions(-) clients/Makefile.am |6 +- clients/simple-rect.c | 654 +++

[protocol v6 PATCH] add maximised protocol

2012-02-03 Thread juan . j . zhao
From: Juan Zhao add a request from the client to notify the compositor the maximised operation. The compositor will send a configure event back to the client --- protocol/wayland.xml |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/protocol/wayland.xml b/protocol/w

[PATCH] smoke:fix the segment fault error

2012-02-02 Thread juan . j . zhao
From: Juan Zhao Add widget_set_size in the initiate time to allow smoke get the correct surface later. Or it will report segment fault error because of the null surface. Also add resize_handler to not allow resizing just like flower. Signed-off-by: Juan Zhao --- clients/smoke.c | 12 ++

[PATCH] window: check previous window size in idle_resize

2012-01-31 Thread juan . j . zhao
From: Juan Zhao When sceduling redraw, the checking will use previous window size before resize_handler is called. Because resize_handler may change the window size. For example, in the flower, the resize_handler will set the window size to make widget and window size the same. This patch is s

[PATCH v5 4/4] add implementation for set_maximised

2012-01-16 Thread juan . j . zhao
From: Juan Zhao Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/shell.c | 52 ++-- 1 files changed, 50 insertions(+), 2 deletions(-) diff --git a/src/shell.c b/src/shell.c index cba0556..8da38b7 100644 --- a/src/shell.c +++ b/src/she

[PATCH v5 3/4] add detailed implementation for fullscreen support

2012-01-16 Thread juan . j . zhao
From: Juan Zhao Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/compositor-drm.c | 156 src/compositor.c | 216 ++ src/shell.c | 13 +++- 3 files changed, 352 insertions(+), 33 delet

[PATCH v5 2/4] add fullscreen interface update

2012-01-16 Thread juan . j . zhao
From: Juan Zhao mainly update shell part here Signed-off-by: Juan Zhao Signed-off-by: Juan Zhao --- src/compositor.c | 21 +- src/compositor.h | 28 - src/shell.c | 60 ++--- 3 files changed, 89

[PATCH v5 1/4] add fullscreen test code

2012-01-16 Thread juan . j . zhao
From: Juan Zhao F12:Force mode F11:Scale mode F10:Fill mode F09:Maximised F08:set_toplevel to reset Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- clients/Makefile.am |5 +- clients/simple-fullscreen.c | 629 +++ clients/window.c

[protocol PATCH v5 2/2] add maximised protocol

2012-01-16 Thread juan . j . zhao
From: Juan Zhao add a request from the client to notify the compositor the maximised operation. The compositor will send a configure event back to the client Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- protocol/wayland.xml |5 + 1 files changed, 5 insertions(+), 0 deletions(

[protocol PATCH v5 1/2] add parameters to set_fullscreen

2012-01-16 Thread juan . j . zhao
From: Juan Zhao Map the surface as a fullscreen surface. Four types are supported. "default" means the client has no preference on fullscreen behavior, policies are determined by compositor. The compositor will send a configure event to the client. "scale" means th

[PATCH v4 4/4] add detailed implementation for fullscreen support

2012-01-16 Thread juan . j . zhao
From: Juan Zhao Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/compositor-drm.c | 162 +++ src/compositor.c | 206 ++ src/shell.c | 11 +++ 3 files changed, 348 insertions(+), 31 del

[PATCH v4 3/4] add fullscreen interface update

2012-01-16 Thread juan . j . zhao
From: Juan Zhao mainly update shell part here Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/compositor.c | 17 + src/compositor.h |7 +++ src/shell.c |1 + 3 files changed, 25 insertions(+), 0 deletions(-) diff --git a/src/compositor.c b/src/com

[PATCH v4 2/4] add fullscreen interface update

2012-01-16 Thread juan . j . zhao
From: Juan Zhao mainly update shell part here Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/compositor.c |4 +- src/compositor.h | 21 ++- src/shell.c | 59 ++--- 3 files changed, 64 insertions(+), 20 del

[PATCH v4 1/4] add fullscreen test code

2012-01-16 Thread juan . j . zhao
From: Juan Zhao F12:Force mode F11:Scale mode F10:Fill mode F09:Maximised F08:set_toplevel to reset Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- clients/Makefile.am |5 +- clients/simple-fullscreen.c | 620 +++ clients/window.c

[protocol PATCH v4 2/2] add maximised protocol

2012-01-16 Thread juan . j . zhao
From: Juan Zhao add a request from the client to notify the compositor the maximised operation. The compositor will send a configure event back to the client Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- protocol/wayland.xml |5 + 1 files changed, 5 insertions(+), 0 deletions(

[protocol PATCH v4 1/2] add parameters to set_fullscreen

2012-01-16 Thread juan . j . zhao
From: Juan Zhao Map the surface as a fullscreen surface. Four types are supported. "default" means the client has no preference on fullscreen behavior, policies are determined by compositor. The compositor will send a configure event to the client. "scale" means th

[PATCH v3 4/4] add fullscreen test code

2012-01-15 Thread juan . j . zhao
From: Juan Zhao F12:Force mode F11:Scale mode F10:Fill mode F09:Maximised F08:set_toplevel to reset Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- clients/Makefile.am |5 +- clients/simple-fullscreen.c | 622 +++ clients/window.c

[PATCH v3 3/4] add set_maximised implementation

2012-01-15 Thread juan . j . zhao
From: Juan Zhao Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/shell.c | 43 ++- 1 files changed, 42 insertions(+), 1 deletions(-) diff --git a/src/shell.c b/src/shell.c index d19b449..c728c5f 100644 --- a/src/shell.c +++ b/src/shell.c @@ -

[PATCH v3 2/4] add detailed implementation for fullscreen support

2012-01-15 Thread juan . j . zhao
From: Juan Zhao Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/compositor-drm.c | 163 + src/compositor.c | 219 +++--- src/shell.c | 20 + 3 files changed, 372 insertions(+), 30 del

[PATCH v3 1/4] add fullscreen interface update

2012-01-15 Thread juan . j . zhao
From: Juan Zhao mainly update shell part here Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- src/compositor.c |4 +- src/compositor.h | 21 ++- src/shell.c | 59 ++--- 3 files changed, 64 insertions(+), 20 del

[protocol PATCH v3 2/2] add maximised protocol

2012-01-15 Thread juan . j . zhao
From: Juan Zhao add a request from the client to notify the compositor the maximised operation. The compositor will send a configure event back to the client Signed-off-by: Juan Zhao Signed-off-by: Zhiwen Wu --- protocol/wayland.xml |5 + 1 files changed, 5 insertions(+), 0 deletions(

[protocol PATCH v3 1/2] add parameters to fullscreen

2012-01-15 Thread juan . j . zhao
From: Juan Zhao Map the surface as a fullscreen surface. Four types are supported. "default" means the client has no preference on fullscreen behavior, policies are determined by compositor. The compositor will send a configure event to the client. "scale" means th

[PATCH v2 2/2] shell: Add set_maximised for wl_shell_surface interface.

2012-01-09 Thread juan . j . zhao
From: Alex Wu mainly send a configure event to the client Signed-off-by: Juan Zhao Signed-off-by: Alex Wu --- src/shell.c | 48 1 files changed, 48 insertions(+), 0 deletions(-) diff --git a/src/shell.c b/src/shell.c index d12bc1a..b93bfa3

[PATCH v2 1/2] shell & compositor: add parameters for set_fullsceen

2012-01-09 Thread juan . j . zhao
From: Alex Wu For some appliation(e.g. xbmc) wanting actual fullscreen effect, compositor should change the display mode to match the app UI rectangle. We add 2 parameters to set_fullscreen in order to let client to choose the appropriate way to deal with dismatch between the client's surface

[protocol PATCH v2 2/2] add set_maximised method for wl_shell_surface interface

2012-01-09 Thread juan . j . zhao
From: Alex Wu add one interface to let the client notify the compositor the maximised operation, and then the compositor will send a configure event back to the client Signed-off-by: Juan Zhao Signed-off-by: Alex Wu --- protocol/wayland.xml |2 ++ 1 files changed, 2 insertions(+), 0 de

[protocol PATCH v2 1/2] add parameters for set_fullscreen

2012-01-09 Thread juan . j . zhao
From: Alex Wu framerate: the expected framerate which will be used as refresh value to choose display mode. flags: indicate how to deal with resolution dismatch. support three methods: "SCALE" means the compositor will scale the surface to the fullscreen. "FORCE" means changing the scr

[PATCH] fix a small bug for null image

2011-12-30 Thread juan . j . zhao
From: Juan Zhao if the image file is not found, desktop-shell will exit un-expectly add the error checking in background_draw --- clients/desktop-shell.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c index 87053f6..14

[PATCH 6/6] add test case for fullscreen

2011-12-30 Thread juan . j . zhao
From: Zhiwen Wu F11 for Force mdoe: change the screen's mode and back from the fullscreen mode F12 for Fill mode: fill the outside of the surface to make it fullscreen, and back from the mode --- clients/Makefile.am |5 +- clients/simple-fullscreen.c | 543 ++

[PATCH 5/6] implement set_mode for drm backend

2011-12-30 Thread juan . j . zhao
From: Zhiwen Wu fill in the set_mode interface for fullscreen usage --- compositor/compositor-drm.c | 158 +++ 1 files changed, 158 insertions(+), 0 deletions(-) diff --git a/compositor/compositor-drm.c b/compositor/compositor-drm.c index f1047ee..03ed9f

[PATCH 4/6] add surface type for fullscreen mode

2011-12-30 Thread juan . j . zhao
From: Juan Zhao figure out different surfaces for wlsc_surface, like cursor, and pannel, for fullscreen mode, it should also be paint but the ohter surfaces should not be paint. --- compositor/compositor.c | 34 ++ compositor/compositor.h |4 compositor

[PATCH 3/6] add existing fullscreen rendering part

2011-12-30 Thread juan . j . zhao
From: Juan Zhao we will restore the mode and repaint the surfaces if the output is changing back from fullscreen mode. --- compositor/compositor.c | 92 +-- compositor/compositor.h |2 + 2 files changed, 75 insertions(+), 19 deletions(-) diff -

[PATCH 2/6] add set_fullscreen for surface

2011-12-30 Thread juan . j . zhao
From: Juan Zhao add set_fullscreen method for surface and upate the fullscreen rendering part --- compositor/compositor.c | 83 --- compositor/compositor.h |5 +++ 2 files changed, 76 insertions(+), 12 deletions(-) diff --git a/compositor/compos

[PATCH 1/6] update shell_set_fullscreen interface

2011-12-30 Thread juan . j . zhao
From: Juan Zhao update the surface and implementation in desktop-shell according to the protocol change for fullscreen. in shell, mainly setting the flags and let the base compositor to do the real mode changing for fill action. --- clients/window.c|4 ++- compositor/compositor.c |

[PATCH] adding parameter for set_fullscreen

2011-12-30 Thread juan . j . zhao
From: Juan Zhao support two methods: "FORCE" means changing the screen resolution to the mode of the surface. If there is no matched mode, just fallback to FILL mode. "FILL" means changing fill the around of the surface to match the screen's mode. currently, we will put the surface in the cen

[PATCH 0/6] add fullscreen mode setting

2011-12-30 Thread juan . j . zhao
From: Juan Zhao if the surface size doesn't match the outputsize, there are two ways supported now: FORCE mode: find a matched mode and set the screen's mode. FILL mode: add black borders to the surface to match the screen's mode --- ___ wayland-devel

[PATCH v3] activate toplevel fullscreen and menu surfaces

2011-12-09 Thread juan . j . zhao
From: Juan Zhao Activate the toplevel, fullscrren and menu surfaces during mapping, so that the launched applications can get the keyboard focus without clicking on that window. --- compositor/shell.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/compositor/shell.

[PATCH v2] activate toplevel fullscreen and menu surfaces

2011-12-09 Thread juan . j . zhao
From: Juan Zhao Activate the toplevel, fullscrren and menu surfaces during mapping, so that the launched applications can get the keyboard focus without clicking on that window. --- compositor/shell.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/compositor/shell.

  1   2   >