Re: [PATCH weston] compositor: Always set output_mask in weston_surface_update_output_mask().

2012-08-03 Thread Kristian Høgsberg
On Fri, Aug 03, 2012 at 05:11:51PM -0600, Scott Moreau wrote: > --- Yes, I saw that, but I was only testing with drm, and the black screen didn't last too long there. The problem is not that the masks are the same, but that the fade surface doesn't have a client and thus doesn't get an output mas

[PATCH weston] compositor: Always set output_mask in weston_surface_update_output_mask().

2012-08-03 Thread Scott Moreau
--- Commit 982387011 causes a bug where starting weston results in a black screen (if no clients are immediately started). The problem is that the offending commit causes the compositor to not damage if there is no difference in the output_mask, which is the case when the compositor first starts.

[PATCH weston v3] compositor-x11: Allow output configuration from config file.

2012-08-03 Thread Scott Moreau
This patch provides a way to define outputs for the x11 backend. It parses [output] sections and checks for 'name' and 'mode' keys. The 'name' must start with an 'X' to distinguish from drm output names. Command line options --width and --height supersede what is in the config file. When --output-c

[PATCH] compositor-x11: Allow output configuration from config file.

2012-08-03 Thread Scott Moreau
This patch provides a way to define outputs for the x11 backend. It parses [output] sections and checks for 'name' and 'mode' keys. The 'name' must start with an 'X' to distinguish from drm output names. Command line options --width and --height supersede what is in the config file. When --output-c

Re: [PATCH] compositor-x11: Allow output configuration from config file.

2012-08-03 Thread Bill Spitzak
Kristian Høgsberg wrote: I think we should just do mode=600x400 Since there is code to parse this text, why not reuse it for the command-line switch? That would allow it to look more like --geometry (maybe even call it that). Ie instead of "--width 100 --height 200" the switch wou

Re: [PATCH v2] shell: moving drag surface refine

2012-08-03 Thread Bill Spitzak
Kristian Høgsberg wrote: The idea was to use the bounding box of the surface pixman_region32_intersect(®ion, &shsurf->surface->transform.boundingbox, &shell->active_regions); This seems to be conflicting with what you

Re: [PATCH] compositor-x11: Allow output configuration from config file.

2012-08-03 Thread Scott Moreau
On Fri, Aug 3, 2012 at 2:42 AM, Pekka Paalanen wrote: > On Thu, 2 Aug 2012 20:42:17 -0600 > Scott Moreau wrote: > > > This patch provides a way to define outputs for the x11 backend. It > > parses [output] sections and checks for 'name', 'width' and 'height' > > keys. The 'name' key must start

Re: [PATCH] compositor-x11: Allow output configuration from config file.

2012-08-03 Thread Scott Moreau
On Fri, Aug 3, 2012 at 11:10 AM, Kristian Høgsberg wrote: > On Thu, Aug 02, 2012 at 08:42:17PM -0600, Scott Moreau wrote: > > This patch provides a way to define outputs for the x11 backend. It > > parses [output] sections and checks for 'name', 'width' and 'height' > > keys. The 'name' key must s

Re: [PATCH weston 11/20] evdev: log input devices

2012-08-03 Thread Kristian Høgsberg
On Fri, Aug 03, 2012 at 02:39:07PM +0300, Pekka Paalanen wrote: > Write information about found input devices into the log. Also fetch and > record the device name. Thats pretty useful. Kristian > Signed-off-by: Pekka Paalanen > --- > src/evdev.c | 27 +++ > src/evdev

Re: [PATCH weston 09/20] evdev: expose the generic evdev API

2012-08-03 Thread Kristian Høgsberg
On Fri, Aug 03, 2012 at 02:39:05PM +0300, Pekka Paalanen wrote: > This API does not depend on udev or launcher-util. > > Signed-off-by: Pekka Paalanen > --- > src/evdev.c |8 > src/evdev.h | 14 ++ > 2 files changed, 18 insertions(+), 4 deletions(-) > > diff --git a/s

Re: [PATCH] spring: Avoid looping if time appears to be going backwards

2012-08-03 Thread Kristian Høgsberg
On Fri, Aug 03, 2012 at 05:02:04PM +0100, Rob Bradford wrote: > From: Rob Bradford > > Since the time values are unsigned integers we can check whether the msec is > smaller than spring->timestamp by checking if the subtraction overflows into a > value greater than half the maximum unsigned integ

Re: [PATCH] compositor-x11: Allow output configuration from config file.

2012-08-03 Thread Kristian Høgsberg
On Thu, Aug 02, 2012 at 08:42:17PM -0600, Scott Moreau wrote: > This patch provides a way to define outputs for the x11 backend. It > parses [output] sections and checks for 'name', 'width' and 'height' > keys. The 'name' key must start with an 'X' to distinguish between > drm output names. Command

Re: [PATCH v2] shell: moving drag surface refine

2012-08-03 Thread Kristian Høgsberg
On Fri, Aug 03, 2012 at 09:58:27AM +0800, Juan Zhao wrote: > Thanks for your reply, I will refine it, I still have some questions. :) > > On Thu, 2012-08-02 at 12:01 -0400, Kristian Høgsberg wrote: > > > @@ -1669,7 +1669,10 @@ update_outputs(struct drm_compositor *ec, > > struct udev_device *drm_d

Re: [PATCH] terminal: Don't crash on non-ascii chars

2012-08-03 Thread Kristian Høgsberg
On Thu, Aug 02, 2012 at 08:59:43PM +0200, Andre Heider wrote: > isalpha() and isdigit() don't like huge values. > Noticed with ascii-art in the shell prompt. Thanks, committed. > --- > clients/terminal.c |3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/clients/terminal.c b/clients

[PATCH] spring: Avoid looping if time appears to be going backwards

2012-08-03 Thread Rob Bradford
From: Rob Bradford Since the time values are unsigned integers we can check whether the msec is smaller than spring->timestamp by checking if the subtraction overflows into a value greater than half the maximum unsigned integer range (ie. top bit set) --- src/util.c | 8 1 file changed,

Re: [RFC] bring tablet-shell back to life

2012-08-03 Thread Juan Zhao
On Fri, 2012-08-03 at 19:11 +0800, Juan Zhao wrote: > https://gitorious.org/dataforuse/dataforuse/blobs/master/foo.webm shows > the video record of our on-going work. We need to git clonet it from gitorious, I also put it on google drive: https://docs.google.com/file/d/0B-GbQ6DK65jybXVqOVhMMTRvNk

[PATCH weston 20/20] configure: make setbacklight optional

2012-08-03 Thread Pekka Paalanen
Modify the pkg-config check for setbacklight so that failure only disables building setbacklight, instead of failing the whole configure. Signed-off-by: Pekka Paalanen --- configure.ac |3 ++- tests/Makefile.am |6 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git

[PATCH weston 19/20] desktop-shell: use the standard 'environ' variable

2012-08-03 Thread Pekka Paalanen
The variable '__environ' seems to be libc implementation specific, and not avaible on Android. Use the POSIX standard variable 'environ', which also luckily happens to be available on Android, which is not POSIX. Signed-off-by: Pekka Paalanen --- clients/desktop-shell.c |6 -- 1 files c

[PATCH weston 18/20] evdev: kill a warning in evdev_led_update()

2012-08-03 Thread Pekka Paalanen
evdev.c: In function 'evdev_led_update': evdev.c:57:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result Useless in this case. Signed-off-by: Pekka Paalanen --- src/evdev.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/evdev.c

[PATCH weston 17/20] android: add basic evdev input support

2012-08-03 Thread Pekka Paalanen
Android backend needs mtdev now, and evdev-touchpad.c, too. Signed-off-by: Pekka Paalanen --- configure.ac |1 + src/Makefile.am | 16 +-- src/compositor-android.c | 105 ++ 3 files changed, 117 insertions(+), 5 deletion

[PATCH weston 16/20] compositor: log program launches

2012-08-03 Thread Pekka Paalanen
Signed-off-by: Pekka Paalanen --- src/compositor.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 2d03a14..1a0764c 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -140,6 +140,8 @@ weston_client_launch(struct weston_compo

[PATCH weston 15/20] compositor-drm, evdev: don't crash on missing keyboard

2012-08-03 Thread Pekka Paalanen
Weston's notify_keyboard_focus_*() assume that a keyboard is present, if they are called. With evdev, there might not always be a keyboard. Also clean up the variable definition in evdev_notify_keyborad_focus(). I read that function through many times and finally had to grep where does 'all_keys'

[PATCH weston 14/20] compositor-drm: log enter/leave VT

2012-08-03 Thread Pekka Paalanen
All input devices are re-added during enter VT, so these messages in the log will clarify what happened with input. Signed-off-by: Pekka Paalanen --- src/compositor-drm.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index d

[PATCH weston 13/20] compositor-drm: log input device hot-unplugs

2012-08-03 Thread Pekka Paalanen
Signed-off-by: Pekka Paalanen --- src/compositor-drm.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 7888ce1..dcb3a14 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -1892,6 +1892,8 @@ evdev_udev_handler

[PATCH weston 12/20] compositor-drm: fix leak in evdev_udev_handler()

2012-08-03 Thread Pekka Paalanen
If the sysname of the udev device did not start with "event", the function returned without unreferencing udev_device. The function is refactored to have a common exit path that unrefs udev_device. The return value semantics are not changed. Signed-off-by: Pekka Paalanen --- src/compositor-drm.

[PATCH weston 11/20] evdev: log input devices

2012-08-03 Thread Pekka Paalanen
Write information about found input devices into the log. Also fetch and record the device name. Signed-off-by: Pekka Paalanen --- src/evdev.c | 27 +++ src/evdev.h |1 + 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index

[PATCH weston 10/20] evdev: move udev code into compositor-drm.c

2012-08-03 Thread Pekka Paalanen
Move all udev-related and now drm backend specific code into compositor-drm.c. This makes evdev.c free of udev and launcher-util, and allows it to be used on Android. Signed-off-by: Pekka Paalanen --- src/compositor-drm.c | 238 +- src/evdev.c

[PATCH weston 09/20] evdev: expose the generic evdev API

2012-08-03 Thread Pekka Paalanen
This API does not depend on udev or launcher-util. Signed-off-by: Pekka Paalanen --- src/evdev.c |8 src/evdev.h | 14 ++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 896702d..92ac934 100644 --- a/src/evdev.c +++ b/src

[PATCH weston 08/20] evdev: rename evdev_seat to drm_seat

2012-08-03 Thread Pekka Paalanen
Signed-off-by: Pekka Paalanen --- src/evdev.c | 18 +- src/evdev.h |2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 7a46a5c..896702d 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -62,7 +62,7 @@ evdev_led_update(struct wl

[PATCH weston 06/20] evdev: make evdev_notify_keyboard_focus() independent of evdev_seat

2012-08-03 Thread Pekka Paalanen
in preparation of removing evdev_seat Signed-off-by: Pekka Paalanen --- src/evdev.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index bd14f14..40f6080 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -583,7 +583,8 @@ device_added(struc

[PATCH weston 07/20] evdev: pass weston_seat to evdev_input_device_create()

2012-08-03 Thread Pekka Paalanen
in preparation of removing evdev_seat Signed-off-by: Pekka Paalanen --- src/evdev.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 40f6080..7a46a5c 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -469,7 +469,7 @@ evdev_configur

[PATCH weston 05/20] evdev: make evdev_led_update independent from struct evdev_seat

2012-08-03 Thread Pekka Paalanen
in preparation of removing evdev_seat Signed-off-by: Pekka Paalanen --- src/evdev.c | 15 +++ 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/evdev.c b/src/evdev.c index 3ea50e5..bd14f14 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -32,7 +32,7 @@ #include "lau

[PATCH weston 04/20] evdev: change evdev_seat into weston_seat in struct evdev_input_device

2012-08-03 Thread Pekka Paalanen
We are phasing out struct evdev_seat. Signed-off-by: Pekka Paalanen --- src/evdev-touchpad.c |2 +- src/evdev.c | 20 ++-- src/evdev.h |2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/evdev-touchpad.c b/src/evdev-touchpad.c i

[PATCH weston 03/20] evdev: merge evdev-private.h into evdev.h

2012-08-03 Thread Pekka Paalanen
Signed-off-by: Pekka Paalanen --- src/Makefile.am |1 - src/evdev-private.h | 115 -- src/evdev-touchpad.c |2 +- src/evdev.c |1 - src/evdev.h | 95 - 5 files changed, 9

[PATCH weston 02/20] evdev: move device opening out from evdev_input_device_create

2012-08-03 Thread Pekka Paalanen
This makes the generic evdev code (i.e. the functions not relying on udev) independent of launcher-util too. The aim is to allow re-using the generic evdev code in the Android backend, where neither udev nor launcher-util are available. evdev_input_device_create() signature is changed: - add the o

[PATCH weston 01/20] evdev: rename device_removed() to evdev_input_device_destroy()

2012-08-03 Thread Pekka Paalanen
evdev_input_device_destroy() will completement the API of evdev_input_device_create(), both being independent from udev. Since the udev-specific device_removed() would only call evdev_input_device_destroy() and do nothing else, device_remove() calls are simply replaced with evdev_input_device_dest

pull: evdev and android

2012-08-03 Thread Pekka Paalanen
Hi Kristian, here is the reworked series for android evdev input[1]. I will reply to this email with the patch series, and it can be found in the git mentioned below. The main idea is to move udev code from evdev.c into compositor-drm.c. For that, the generic code in evdev.c is cleaned up from ud

[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 +

[RFC] bring tablet-shell back to life

2012-08-03 Thread Juan Zhao
Hi krh, We've tried to bring tablet-shell back to life. We just added the sliding support, which you saw several weeks before, and brought simple-egl, toytool kit applications, efl applications could also work well. We added a new .ini file for tablet-shell, because we will add layout and launcher

Re: [PATCH] compositor-x11: Allow output configuration from config file.

2012-08-03 Thread Pekka Paalanen
On Thu, 2 Aug 2012 20:42:17 -0600 Scott Moreau wrote: > This patch provides a way to define outputs for the x11 backend. It > parses [output] sections and checks for 'name', 'width' and 'height' > keys. The 'name' key must start with an 'X' to distinguish between > drm output names. Command line

RE: [E-devel] [PATCH 0/3 v3] Add Copy and Paste support for wayland engine

2012-08-03 Thread Chris Michael
Thank you Alex for the patches !! :) I do not think I will have time to get to them today (and I know I have delayed these patches all week) :( It's just that for something this "large", it will take time to review, test, etc, etc...and I don't have that time available today :( However, I will make

[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