platform/upstream/weston.git
8 years agocompositor-rdp: update link to wheel delta explanation
Peter Hutterer [Mon, 18 Jan 2016 03:54:19 +0000 (13:54 +1000)]
compositor-rdp: update link to wheel delta explanation

The previous one is a 404 now.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
8 years agoclients: Fix compositor version check for WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION
Christopher Michael [Sun, 20 Dec 2015 12:41:52 +0000 (07:41 -0500)]
clients: Fix compositor version check for WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Reviewed-By: David Fort <contact@hardening-consulting.com>
8 years agoclients: fix build on Linux
Olivier Fourdan [Thu, 14 Jan 2016 13:46:14 +0000 (14:46 +0100)]
clients: fix build on Linux

Cannot find out why stropts.h is needed and Linux doesn't support
streams anyway, so there is no stropts.h.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
8 years agogl-renderer: Fix comment typo
Bryce Harrington [Thu, 14 Jan 2016 02:48:56 +0000 (18:48 -0800)]
gl-renderer: Fix comment typo

8 years agocompositor: create_data_source(): Fix potential crash on OOM
cpaul@redhat.com [Tue, 5 Jan 2016 16:18:30 +0000 (11:18 -0500)]
compositor: create_data_source(): Fix potential crash on OOM

Noticed this while working on primary selection, in the event we run out
of memory when trying to create a new data source, there's a chance
we'll fail on wl_resource_create() and crash from source->resource being
set to NULL.

Signed-off-by: Lyude <cpaul@redhat.com>
Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agocompositor: Make types consistent for bitshifting unsigned ints
Bryce Harrington [Thu, 24 Dec 2015 02:38:07 +0000 (18:38 -0800)]
compositor: Make types consistent for bitshifting unsigned ints

8 years agocompositor: Verify that the maximum number of outputs is not exceeded
Bryce Harrington [Thu, 24 Dec 2015 04:53:53 +0000 (20:53 -0800)]
compositor: Verify that the maximum number of outputs is not exceeded

output_id_pool is defined as a uint32_t, thus ffs() provides a range of
1-32 available id numbers.  When the 33rd output is enabled, Weston will
set the ID to (unsigned)(-1) and thus lead to some unexpected
behaviors.

I'm not sure what the best way to handle this error would be since this
is in an initialization routine, but at least let's document the
potential error condition with an assert().

8 years agocompositor: Document how views and surfaces are mapped to outputs
Bryce Harrington [Wed, 23 Dec 2015 19:01:58 +0000 (11:01 -0800)]
compositor: Document how views and surfaces are mapped to outputs

8 years agodesktop-shell: Allow binding-modifier weston.ini option to be none
Bob Ham [Tue, 12 Jan 2016 10:21:49 +0000 (10:21 +0000)]
desktop-shell: Allow binding-modifier weston.ini option to be none

Allow the binding-modifier option in weston.ini to take a value of
"none", meaning that none of the usual Super+Tab, Super+K, Super+Fn,
etc. key bindings will be enabled.

Signed-off-by: Bob Ham <bob.ham@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
8 years agodesktop-shell: Make zapping configurable
Bob Ham [Tue, 12 Jan 2016 10:21:48 +0000 (10:21 +0000)]
desktop-shell: Make zapping configurable

Add a new boolean weston.ini option, "allow-zap" to enable or disable
the Ctrl-Alt-Backspace key combination.

Signed-off-by: Bob Ham <bob.ham@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
8 years agocompositor-{drm, fbdev, rpi}: Make VT switching configurable
Bob Ham [Tue, 12 Jan 2016 10:21:47 +0000 (10:21 +0000)]
compositor-{drm, fbdev, rpi}: Make VT switching configurable

Add a new boolean weston.ini option, "vt-switching" to enable or
disable Ctrl-Alt-Fn key combinations.

Signed-off-by: Bob Ham <bob.ham@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
(Derek Foreman changed the prototype for switch_vt_binding to
have a weston_keyboard * instead of weston_seat *.  The pointer
wasn't used, so this is just a warning fix.)

8 years agoclients: add simple-v4l-dmabuf client
Emmanuel Gil Peyrot [Mon, 11 Jan 2016 19:04:38 +0000 (19:04 +0000)]
clients: add simple-v4l-dmabuf client

This client opens a V4L2 device, usually exposed as /dev/videoN, and
retrieves its frames as dmabuf for later import into the compositor.

It supports both single- and multi-planar devices, and any format
exposed by the V4L2 device the Wayland compositor accepts.

This client never changes the v4l2 settings, use `v4l2-ctl -c` if you
want to change those.

Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>
Acked-by: Derek Foreman <derekf@osg.samsung.com>
Tested-by: Derek Foreman <derekf@osg.samsung.com>
Maniphest Tasks: T90

Differential Revision: https://phabricator.freedesktop.org/D339

8 years agoclients: Fix a few issues in simple-dmabuf-intel
Emmanuel Gil Peyrot [Mon, 11 Jan 2016 19:04:37 +0000 (19:04 +0000)]
clients: Fix a few issues in simple-dmabuf-intel

Those were found while working on simple-dmabuf-v4l, as found in the
next patch of this series.

After each buffer’s params were ready to be submitted to the
compositor, a roundtrip was done, which is wasteful since we can do it
only once after having queued all the params we want.  Removing those
nested roundtrips also prevent the potentially dangerous side-effect of
calling callbacks for later events while previous events were still
being processed.

An extraneous surface damage was also removed.

Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Differential Revision: https://phabricator.freedesktop.org/D344

8 years agoclients: rename simple-dmabuf into simple-dmabuf-intel
Emmanuel Gil Peyrot [Mon, 11 Jan 2016 19:04:36 +0000 (19:04 +0000)]
clients: rename simple-dmabuf into simple-dmabuf-intel

This client was using an Intel-specific way to allocate a dmabuf, so it
makes sense to have that in its name.

Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Differential Revision: https://phabricator.freedesktop.org/D342

8 years agogl-renderer: Add support for a few YUV dmabuf formats
Emmanuel Gil Peyrot [Mon, 11 Jan 2016 19:04:35 +0000 (19:04 +0000)]
gl-renderer: Add support for a few YUV dmabuf formats

Namely the single-planar YUYV, the two-planar NV12, and the
three-planar YUV420, using the shaders already present in Weston.

Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Maniphest Tasks: T13

Differential Revision: https://phabricator.freedesktop.org/D334

8 years agogl-renderer: introduce a new struct dmabuf_image
Emmanuel Gil Peyrot [Mon, 11 Jan 2016 19:04:34 +0000 (19:04 +0000)]
gl-renderer: introduce a new struct dmabuf_image

This struct serves as renderer data for linux-dmabuf buffers, and can
contain multiple struct egl_image, simplifying this latter in the
common non-dmabuf case.

Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Differential Revision: https://phabricator.freedesktop.org/D333

8 years agocompositor: Document routines relating to idle behavior
Bryce Harrington [Fri, 11 Dec 2015 21:11:38 +0000 (13:11 -0800)]
compositor: Document routines relating to idle behavior

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agocompositor: Fix a couple comment typos
Bryce Harrington [Fri, 11 Dec 2015 21:11:37 +0000 (13:11 -0800)]
compositor: Fix a couple comment typos

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoxwm: let the shells decide the position of X windows
Giulio Camuffo [Fri, 11 Dec 2015 18:57:05 +0000 (20:57 +0200)]
xwm: let the shells decide the position of X windows

The xwm used to automatically send to Xwayland the position of X windows
when that changed, using the x,y of the primary view of the surface.
This works fine for the desktop shell but less so for others.
This patch adds a 'send_position' vfunc to the weston_shell_client that
the shell will call when it wants to let Xwayland know what the position
of a window is.
The logic used by the desktop-shell for that is exactly the same the xwm
used to have.
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: David Fort <contact@hardening-consulting.com>
8 years agocompositor-fbdev: Drop intermediate shadow buffer
Sjoerd Simons [Sat, 5 Dec 2015 01:20:12 +0000 (19:20 -0600)]
compositor-fbdev: Drop intermediate shadow buffer

Currently the fbdev compositor has its own shadow buffer when rendering
with pixman, causing the following copies to occur:

[pixman shadow buffer] -> [fbdev shadow buffer] -> [fbdev hardware]

As the pixman render already does all output translation when
compositing the intermediate shadow buffer really isn't needed, so drop
it.

As a side-effect this fixes updating the fbdev hardware for outputs not
starting at 0x0.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: David FORT <contact@hardening-consulting.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Tested-by: Derek Foreman <derekf@osg.samsung.com>
8 years agoweston-info: display output scale
Jonny Lamb [Thu, 17 Dec 2015 12:31:56 +0000 (12:31 +0000)]
weston-info: display output scale

Fall back to not showing anything as before if we don't have a
compositor with wl_output new enough (version 2 or newer).

Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoivi-shell: hmi-controller supports multi screens at random-mode.
Nobuhiko Tanibata [Wed, 9 Dec 2015 06:45:52 +0000 (15:45 +0900)]
ivi-shell: hmi-controller supports multi screens at random-mode.

It shows ivi applications at screensa randomly.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoivi-shell: hmi-controller supports multi screens at fullscreen mode.
Nobuhiko Tanibata [Wed, 9 Dec 2015 06:45:20 +0000 (15:45 +0900)]
ivi-shell: hmi-controller supports multi screens at fullscreen mode.

It shows ivi applications in fullscreen per screen like,
The first screen: Application 1,4,5,6,,,,
The seconed screen: Application 2,
The third screen: Application 3

Thie mode assigns one application to each screen at first. And remaind
applications more than screens will be assigned to the first screen.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoivi-shell: hmi-controller supports multi screens at side-by-side mode.
Nobuhiko Tanibata [Wed, 9 Dec 2015 06:44:07 +0000 (15:44 +0900)]
ivi-shell: hmi-controller supports multi screens at side-by-side mode.

It shows 2 ivi application in a screen at side-by-side. It moves
additinal application more than 2xN to next screen N+1.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoivi-shell: hmi-controller supports multi screens at tiling mode.
Nobuhiko Tanibata [Wed, 9 Dec 2015 06:43:30 +0000 (15:43 +0900)]
ivi-shell: hmi-controller supports multi screens at tiling mode.

It shows 8 ivi applications in a screen at tiling. It moves additional
application more than 8xN to next screen N+1.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agohmi-controller: allocate application layers for multi-screen
Nobuhiko Tanibata [Wed, 9 Dec 2015 06:42:46 +0000 (15:42 +0900)]
hmi-controller: allocate application layers for multi-screen

To locate surfaces of application on multi screens, multi layers are
created baseod on application-layer-id + base-layer-id-offset x N.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agohmi-controller: allocate background surfaces for multi-screen
Nobuhiko Tanibata [Wed, 9 Dec 2015 06:41:46 +0000 (15:41 +0900)]
hmi-controller: allocate background surfaces for multi-screen

A surface ID for layer of background/panel image is set by key: background-id
or panel-id at weston.ini. To support multi screens, it also support offset,
surface-id-offset, to offset the surface ID to next ID for a layer on next
screen.

According to the above key, hmi-controller and ivi-shell-user-interface
who increments the number of screens per notification of wl_output.
crate surface and draw background/panel image on multi surface on screens.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agohmi-controller: allocate base layers for multi-screen
Nobuhiko Tanibata [Wed, 9 Dec 2015 06:41:00 +0000 (15:41 +0900)]
hmi-controller: allocate base layers for multi-screen

A layer ID for screen is set by key: base-layer-id at weston.ini. To
support multi screens. It also support offset to offset the layer ID
to next ID for next screen.

For example,
base-layer-id=1000
base-layer-id-offset=10000

Layer id for screen 0: 1000
Layer id for screen 1: 11000
Layer id for screen 2: 21000

To support multi screen, create layers for background and panel bar which
located in the below per screens. At the moment, it is only layers.
Surfaces to be created at next patch in the patch set.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoivi-shell: hmi-controller implements internal method to get screen.
Nobuhiko Tanibata [Wed, 9 Dec 2015 06:40:13 +0000 (15:40 +0900)]
ivi-shell: hmi-controller implements internal method to get screen.

- get screens from weston core
- provide screens as internel method
- the iviscn is stored in array inverse order in index.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoivi-shell: multi screen support to calcuration of a mask of weston_surface.
Nobuhiko Tanibata [Wed, 9 Dec 2015 06:39:26 +0000 (15:39 +0900)]
ivi-shell: multi screen support to calcuration of a mask of weston_surface.

A weston_surface is transformed to multi screen coordinate, global
coordinate by matrix:m now.

Additionally, a mask needs to be calucated, taking account into,
- multi screen coordination: a destination rectangle of layer in the
  coordination is easily calcurated by adding weston_output.{x,y} in
  simple. This is because there is no scaled and rotated transformation.
- intersect inside of a screen the layer is assigned to. This is because
  overlapped region of weston surface in another screen shall not be
  displayed according to ivi use case.

Signed-off-by: Nobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoivi-shell: convert from screen to global coordinates
Nobuhiko Tanibata [Wed, 9 Dec 2015 06:38:41 +0000 (15:38 +0900)]
ivi-shell: convert from screen to global coordinates

In single screen, the coordinates of layer local coordinates are the
same as global coordinates. However, to support multi screens, the
layer-local coordinates shall be transformed to multi screen coordinates,
which is global coordinates. The abosolute coordinates of a screen in global
stored in (x,y) of output of its weston output so it shall be used to
transform layer-local to global coordinates.

Signed-off-by: Nobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoivi-shell: avoid update_prop() on invisible surfaces
Nobuhiko Tanibata [Wed, 9 Dec 2015 06:36:58 +0000 (15:36 +0900)]
ivi-shell: avoid update_prop() on invisible surfaces

For multi screen support, ivi_layout_screen to be taken account into
property change in commitChanges.

Property change is now done in update_prop so to consider ivi_screen
property for caluculating transform of weston surface, ivi_layout_screen
 is added as a parameter of update_prop.

However, update_prop of weston_view of a ivi_surface can not be done
even if it is set on a screen. The propoerty change shall be done only
when a visibility of ivi_surface or ivi_layer which contains the
ivi_surface is ON. Such a condition shall be checked at commit_changes
as well to avoid calling update_prop, which actually updates
weston_views.

Signed-off-by: Nobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoivi-shell: activate weston surface with a seat when left click or touch.
Nobuhiko Tanibata [Wed, 9 Dec 2015 06:03:47 +0000 (15:03 +0900)]
ivi-shell: activate weston surface with a seat when left click or touch.

Similar with Desktop shell, set activate to weston surface which is
left-clicked by pointer or touched. This is needed to focus it with a seat.
Without this, a feature who gets activated weston surface by using
weston_surface_get_main_surface doesn't work correctly because it can
not get correct focused weston surface. For example, input-panel uses
weston_surface_get_main_surface to get a weston surface. With this
weston surface, it get a member: output to decide which output shall
show a input-panel, software keyboard. Without activation,
input-panel-ivi can not find a correct output which shows e.g.
weston-editor who uses input-method.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agocompositor-wayland: Add touch support
Derek Foreman [Fri, 6 Nov 2015 21:56:10 +0000 (15:56 -0600)]
compositor-wayland: Add touch support

Adds support for touch devices to the wayland backend.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
8 years agoinput: Add notify_touch_cancel()
Derek Foreman [Fri, 6 Nov 2015 21:56:09 +0000 (15:56 -0600)]
input: Add notify_touch_cancel()

We already have notify_touch(), notify_touch_frame().  We need
notify_touch_cancel() to implement touch in the weston wayland backend
properly.

Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
8 years agocompositor-wayland: Properly release input resources when caps change
Derek Foreman [Fri, 6 Nov 2015 21:56:08 +0000 (15:56 -0600)]
compositor-wayland: Properly release input resources when caps change

We should use wl_*_release when available instead of destroy, and we
should update weston's internal input tracking with weston_seat_releases

Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
8 years agocairo-util: return theme location from frame_touch_down
Derek Foreman [Fri, 6 Nov 2015 21:56:07 +0000 (15:56 -0600)]
cairo-util: return theme location from frame_touch_down

I'll be using this in a follow up patch that adds touch input to weston's
wayland backend.

Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
8 years agoconfigure.ac: add explicit enable/disable for lcms
Jussi Kukkonen [Fri, 27 Nov 2015 14:37:35 +0000 (16:37 +0200)]
configure.ac: add explicit enable/disable for lcms

This is useful for reproducable builds.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agocosmetic: Remove use of C++ style comments
Chris Michael [Thu, 3 Dec 2015 17:23:12 +0000 (12:23 -0500)]
cosmetic: Remove use of C++ style comments

Patch updated to remove dead lines as suggested by Daniel Stone

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
8 years agocompositor: Add doxygen for weston_surface_to_buffer_rect()
Derek Foreman [Thu, 3 Dec 2015 22:38:11 +0000 (16:38 -0600)]
compositor: Add doxygen for weston_surface_to_buffer_rect()

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agosimple-damage: Add --use-damage-buffer flag
Derek Foreman [Wed, 18 Nov 2015 22:32:34 +0000 (16:32 -0600)]
simple-damage: Add --use-damage-buffer flag

Add a new flag for testing damage in buffer co-ordinates

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agocompositor: Add damage_buffer
Derek Foreman [Thu, 26 Nov 2015 20:17:48 +0000 (14:17 -0600)]
compositor: Add damage_buffer

Add an implementation of wl_surface.damage_buffer, similar to
wl_surface.damage except it uses buffer co-ordinates.

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
8 years agolinux-dmabuf: Move the attributes part of linux_dmabuf_buffer into its own struct
Emmanuel Gil Peyrot [Tue, 24 Nov 2015 19:28:24 +0000 (19:28 +0000)]
linux-dmabuf: Move the attributes part of linux_dmabuf_buffer into its own struct

This allows renderers to use that struct to create their own dmabufs,
in case they can’t import the one provided by the client directly but
know how to convert it into a format they can render.

Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Differential Revision: https://phabricator.freedesktop.org/D332
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
8 years agocompositor: Remove unused weston_surface_to_buffer function
Chris Michael [Mon, 30 Nov 2015 15:23:04 +0000 (10:23 -0500)]
compositor: Remove unused weston_surface_to_buffer function

The function 'weston_surface_to_buffer' is unused by compositor and
clients inside weston, so it should be safe to remove this function

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agocompositor: change rounding in weston_surface_to_buffer_rect()
Derek Foreman [Tue, 1 Dec 2015 19:00:43 +0000 (13:00 -0600)]
compositor: change rounding in weston_surface_to_buffer_rect()

Rounding both corners of the rectangle down can result in a 0
width/height rectangle before passing to weston_transformed_rect.

This showed up as missing damage in weston-simple-damage (the
bouncing ball would leave green trails when --use-viewport was
used)

Reviewed-by: Daniel Stone <daniels@collabora.co.uk>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
8 years agomain: Remove unused function load_backend_new()
Chris Michael [Mon, 30 Nov 2015 20:51:48 +0000 (15:51 -0500)]
main: Remove unused function load_backend_new()

This function is unused throughout the entire weston source tree, so
remove it. It seems that the "load_backend" function is the one
currently being used

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
8 years agosimple-damage: Offset drawing co-ordinates not buffer start
Derek Foreman [Wed, 18 Nov 2015 22:32:33 +0000 (16:32 -0600)]
simple-damage: Offset drawing co-ordinates not buffer start

We've been setting up the viewport by moving the start pointer of the
draw buffer, but later when we want to post damage in buffer co-ordinates
we'll need to keep track of the x,y offsets anyway.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agocompositor, input: Don't use MIN() macro for new resource versions
Derek Foreman [Thu, 26 Nov 2015 20:17:47 +0000 (14:17 -0600)]
compositor, input: Don't use MIN() macro for new resource versions

libwayland-server protects us from invalid serial numbers by
posting an error already.

MIN() is for clients when selecting interface versions.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agocompositor-drm: fix hw cursor positioning
Pekka Paalanen [Fri, 27 Nov 2015 12:20:58 +0000 (14:20 +0200)]
compositor-drm: fix hw cursor positioning

Fix a regression introduced by be428b3825043cbcc676d2526fe6213bea7f676a
which accidentally removed the global-to-output space conversion.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Cc: Derek Foreman <derekf@osg.samsung.com>
Cc: Daniel Stone <daniels@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Tested-by: Derek Foreman <derekf@osg.samsung.com>
8 years agoivi-shell: remove a code which expects only a screen in the system.
Nobuhiko Tanibata [Wed, 25 Nov 2015 14:37:09 +0000 (23:37 +0900)]
ivi-shell: remove a code which expects only a screen in the system.

It breaks from wl_list_for_each of screens when the frist screen found.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoivi-shell: fix layout_layer.view_list is not initilized per a screen.
Nobuhiko Tanibata [Wed, 25 Nov 2015 14:36:57 +0000 (23:36 +0900)]
ivi-shell: fix layout_layer.view_list is not initilized per a screen.

This is potential bug when it supports several screens. If view_list is
initilized here, the views, which are set by the previous screen, are
cleared. So View list shall be initilized in front of wl_list_for_each
of all screens.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoivi-shell: avoid inserting a ivi_layer to multiple screens.
Nobuhiko Tanibata [Wed, 25 Nov 2015 14:36:46 +0000 (23:36 +0900)]
ivi-shell: avoid inserting a ivi_layer to multiple screens.

In just previous wl_list_for_each_safe, list of layer in a screen is
cleaned up. And then, the list is re-constructed from
pending.layer_list.

In this re-construction, if order.link of a layer were inserted into a
screen whose number is later one of current screen, the order.link will
inserted into layer_list of two screens. This shall be avoided.

However, if we want to implement a feature to allow a layer to be added
to multiple screens. A layer shall have several order.link per screens.
So, I marked here as TODO.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoivi-shell: fix TODO which expects only one screen in the system.
Nobuhiko Tanibata [Wed, 25 Nov 2015 14:36:09 +0000 (23:36 +0900)]
ivi-shell: fix TODO which expects only one screen in the system.

It just return the first screen found in screen list.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoconfigure: don't control egl version
Ucan, Emre (ADITG/SW1) [Wed, 18 Nov 2015 10:23:50 +0000 (10:23 +0000)]
configure: don't control egl version

The required version only corresponds to version of mesa implementation.
This mesa version requirement causes configure errors,
when weston is configured for a different egl implementation than mesa.
Because the version of the egl drivers are not alligned
to the mesa version.

Therefore, I deleted the version controlling for egl,
so that weston can be configured for a different egl implementation.

Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agocompositor: Fix comment of subsurface_commit_to_cache function
Chris Michael [Thu, 26 Nov 2015 16:30:00 +0000 (11:30 -0500)]
compositor: Fix comment of subsurface_commit_to_cache function

commit 57388e44e5 accidentally changed the comment in
compositor.c::subsurface_commit_to_cache

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
8 years agocompositor: ignore useless surface_damage
Derek Foreman [Tue, 17 Nov 2015 20:11:35 +0000 (14:11 -0600)]
compositor: ignore useless surface_damage

If we pass negative height or width on to pixman we get error messages
in the log.

Also, if width or height is 0, there's no damage, so we can early return
for that too.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoconfigure.ac: Bump wayland-protocols dependency to 1.0
Jonas Ådahl [Wed, 25 Nov 2015 08:03:04 +0000 (16:03 +0800)]
configure.ac: Bump wayland-protocols dependency to 1.0

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
8 years agocompositor-drm: Use view transform in cursor plane setup
Derek Foreman [Tue, 24 Nov 2015 17:39:38 +0000 (11:39 -0600)]
compositor-drm: Use view transform in cursor plane setup

Make sure a view's transform is viable for a cursor plane and
then actually apply it before setting the cursor plane location.

Now if a subsurface ends up in the cursor plane, the plane will be
properly positioned.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
8 years agoivi-shell-user-interface: fix runtime error caused by missing header inclusion
Yong-iL Joh [Tue, 17 Nov 2015 07:28:11 +0000 (16:28 +0900)]
ivi-shell-user-interface: fix runtime error caused by missing header inclusion

when weston is running on qemux86 device, there is an error with following.

[08:02:07.897] launching '/usr/lib/weston/weston-ivi-shell-user-interface'
[08:02:08.201] /usr/lib/weston/weston-ivi-shell-user-interface died on signal 11

this is caused by type mismatch, and
it does occur on qemux86-64

Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
Acked-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agocompositor.h: Remove unused variable from weston_seat structure
Chris Michael [Wed, 18 Nov 2015 15:22:59 +0000 (10:22 -0500)]
compositor.h: Remove unused variable from weston_seat structure

This variable may have been used previously when evdev.c was used
however that functionality seems to have been consumed by libinput, so
there is no need for this variable in the weston_seat structure anymore.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agoclients: Adjust grammar of comment for toysurface->prepare function pointer
Chris Michael [Mon, 23 Nov 2015 20:13:57 +0000 (15:13 -0500)]
clients: Adjust grammar of comment for toysurface->prepare function pointer

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agocompositor: Remove extra blank line
Chris Michael [Mon, 23 Nov 2015 20:13:56 +0000 (15:13 -0500)]
compositor: Remove extra blank line

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agoclients: Fix a few minor typos in comments
Bryce Harrington [Fri, 20 Nov 2015 19:57:43 +0000 (11:57 -0800)]
clients: Fix a few minor typos in comments

8 years agocompositor: Move weston_matrix_transform_region to compositor.c and export it
Derek Foreman [Wed, 18 Nov 2015 22:32:30 +0000 (16:32 -0600)]
compositor: Move weston_matrix_transform_region to compositor.c and export it

We're going to use this to replace much of the other transform code so
it's no longer just relevant to pixman-renderer.c

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
[Pekka: add the warning about matrix restrictions]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agopixman-renderer: Use output->matrix for region transformations and enable output...
Jason Ekstrand [Wed, 18 Nov 2015 22:32:29 +0000 (16:32 -0600)]
pixman-renderer: Use output->matrix for region transformations and enable output zoom

Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
[Pekka: added the comment for the function]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agogl-renderer: Make texture_used a bool instead of an int
Derek Foreman [Wed, 18 Nov 2015 22:32:28 +0000 (16:32 -0600)]
gl-renderer: Make texture_used a bool instead of an int

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agogl-renderer: Use a bool for needs_full_upload
Derek Foreman [Wed, 18 Nov 2015 22:32:27 +0000 (16:32 -0600)]
gl-renderer: Use a bool for needs_full_upload

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agocompositor: Change "touched" to bool
Derek Foreman [Wed, 18 Nov 2015 22:32:26 +0000 (16:32 -0600)]
compositor: Change "touched" to bool

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agotoytoolkit: Remove window_damage()
Derek Foreman [Wed, 18 Nov 2015 22:32:25 +0000 (16:32 -0600)]
toytoolkit: Remove window_damage()

It's just a direct call to wl_surface_damage() anyway, and the only
caller no longer exists.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agosmoke: Don't post extra damage
Derek Foreman [Wed, 18 Nov 2015 22:32:24 +0000 (16:32 -0600)]
smoke: Don't post extra damage

We're going to post damage when the widget redraw happens anyway.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoinput: Keep per client pointer resources in their own structs
Jonas Ådahl [Wed, 22 Jul 2015 04:05:38 +0000 (12:05 +0800)]
input: Keep per client pointer resources in their own structs

Keep all per client wl_pointer resources in a new struct called
'weston_pointer_client'. When focus changes, instead of moving a list
of resources between different lists, just change the focused pointer
client.

The intention with this is to make it easier to add wl_pointer
extensions that share the same focus as the corresponding wl_pointer.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
8 years agoinput: Don't send wl_pointer.motion if position didn't change
Jonas Ådahl [Fri, 24 Apr 2015 07:26:17 +0000 (15:26 +0800)]
input: Don't send wl_pointer.motion if position didn't change

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
8 years agoinput: Make pointer grab motion callbacks take an event struct
Jonas Ådahl [Sun, 5 Oct 2014 19:39:14 +0000 (21:39 +0200)]
input: Make pointer grab motion callbacks take an event struct

Instead of only passing absolute pointer coordinates, effectively
loosing motion event data, pass a struct that can potentially contain
different types of motion events, currently being absolute and relative.

A helper function to get resulting absolute coordinates was added for
when previous callbacks simply used the (x, y) coordinates.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
8 years agoprotocol: fix DTD warning in weston-desktop-shell
Pekka Paalanen [Thu, 19 Nov 2015 13:58:44 +0000 (15:58 +0200)]
protocol: fix DTD warning in weston-desktop-shell

The DTD requires elements in certain order, scanner itself doesn't.
Anyway, fix the warning with a simple reordering to match how all other
protocols are written.

Fixes:
protocol:107: element request: validity error : Element request content
does not follow the DTD, expecting (description? , arg*), got (arg
description )

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoreleasing.txt: Add step about checking wayland-protocols dependency
Jonas Ådahl [Wed, 18 Nov 2015 02:45:28 +0000 (10:45 +0800)]
releasing.txt: Add step about checking wayland-protocols dependency

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Acked-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoRemove workspaces protocol
Jonas Ådahl [Tue, 17 Nov 2015 08:00:35 +0000 (16:00 +0800)]
Remove workspaces protocol

It doesn't fill a useful function and is not intended to be continued.
If there is need for workspace manipulation from clients a protocol
based on those future needs need to be properly designed.
workspaces.xml is probably not very relevant since it did the bare
minimum.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Mariusz Ceier <mceier+wayland@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoRename screenshooter protocol to weston_screenshooter
Jonas Ådahl [Tue, 17 Nov 2015 08:00:34 +0000 (16:00 +0800)]
Rename screenshooter protocol to weston_screenshooter

Due to the effort of moving a way from non-prefixed protocols, rename
the weston specific screenshooter protocol to weston_screenshooter.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Mariusz Ceier <mceier+wayland@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agodesktop-shell: Rename protocol weston_desktop_shell
Jonas Ådahl [Tue, 17 Nov 2015 08:00:33 +0000 (16:00 +0800)]
desktop-shell: Rename protocol weston_desktop_shell

In the effort of going away from generic names of protocols only
relevant for weston, rename the weston desktop shell
weston_desktop_shell.

This also resets the version to 1, as there will be no prior versions
to weston_desktop_shell.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Mariusz Ceier <mceier+wayland@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoUse xdg_shell protocol from wayland-protocols
Jonas Ådahl [Tue, 17 Nov 2015 08:00:32 +0000 (16:00 +0800)]
Use xdg_shell protocol from wayland-protocols

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Mariusz Ceier <mceier+wayland@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Jasper St. Pierre <jstpierre@mecheye.net>
8 years agoMakefile.am: Make the external xml scanning rule version generic
Jonas Ådahl [Tue, 17 Nov 2015 08:00:31 +0000 (16:00 +0800)]
Makefile.am: Make the external xml scanning rule version generic

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Mariusz Ceier <mceier+wayland@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoUse input method protocol from wayland-protocols
Jonas Ådahl [Tue, 17 Nov 2015 08:00:30 +0000 (16:00 +0800)]
Use input method protocol from wayland-protocols

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Mariusz Ceier <mceier+wayland@gmail.com>
Reviewed-by: Jan Arne Petersen <janarne@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoUse text input protocol from wayland-protocols
Jonas Ådahl [Tue, 17 Nov 2015 08:00:29 +0000 (16:00 +0800)]
Use text input protocol from wayland-protocols

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Mariusz Ceier <mceier+wayland@gmail.com>
Reviewed-by: Jan Arne Petersen <janarne@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoUse linux-dmabuf protocol from wayland-protocols
Jonas Ådahl [Tue, 17 Nov 2015 08:00:28 +0000 (16:00 +0800)]
Use linux-dmabuf protocol from wayland-protocols

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Mariusz Ceier <mceier+wayland@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agoUse fullscreen-shell.xml from wayland-protocols
Jonas Ådahl [Tue, 17 Nov 2015 08:00:27 +0000 (16:00 +0800)]
Use fullscreen-shell.xml from wayland-protocols

Use the fullscreen-shell protocol XML from the wayland-protocols
installation, and remove the one we provide ourself.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Mariusz Ceier <mceier+wayland@gmail.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
8 years agocompositor-wayland: Change focus to a bool instead of an int
Derek Foreman [Fri, 6 Nov 2015 21:56:06 +0000 (15:56 -0600)]
compositor-wayland: Change focus to a bool instead of an int

Also rename focus to has_focus to be slightly less confusing.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agodesktop-shell: use weston_pointer_send_axis
Peter Hutterer [Mon, 16 Nov 2015 02:35:57 +0000 (12:35 +1000)]
desktop-shell: use weston_pointer_send_axis

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
8 years agoshared: work around EGL header idiosyncrasy
Ahmet Acar [Fri, 13 Nov 2015 16:25:46 +0000 (10:25 -0600)]
shared: work around EGL header idiosyncrasy

When no X11 headers are present eglplatform.h will break unless
certain defines are set prior to its inclusion.

including wayland-egl.h defines WL_EGL_PLATFORM which will stop
the attempted inclusion of the X11 headers.

Maybe this isn't the best solution to the problem, but it's harmless
and gets the job done.

Closes bug: https://bugs.freedesktop.org/show_bug.cgi?id=92104

Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
(patch by Ahmet Acar, commit log by Derek Foreman)

8 years agocompositor-drm: pass NULL to mmap() instead of 0 as the address
Chris Michael [Tue, 10 Nov 2015 15:40:37 +0000 (10:40 -0500)]
compositor-drm: pass NULL to mmap() instead of 0 as the address

mmap() function expects to be passed a void pointer as the address
here. Passing NULL is technically more correct than passing 0.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
8 years agocompositor-drm: fall back to EGL visual_id 0 if no others work
Derek Foreman [Wed, 4 Nov 2015 20:47:33 +0000 (14:47 -0600)]
compositor-drm: fall back to EGL visual_id 0 if no others work

commit e76f185 stopped using visuals with "native visual id" == 0

This broke some systems, so we now try 0 as a worst case fallback if
everything else has failed.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agoinput: Pass axis events through pointer grab interfaces
Jonas Ådahl [Sat, 4 Oct 2014 14:28:29 +0000 (16:28 +0200)]
input: Pass axis events through pointer grab interfaces

Don't only send motions and buttons but also axis events through the
pointer grab interface.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
8 years agodesktop-shell: Add surface_keyboard_focus_lost helper
Jonas Ådahl [Wed, 15 Oct 2014 20:02:06 +0000 (22:02 +0200)]
desktop-shell: Add surface_keyboard_focus_lost helper

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
8 years agoProvide damage region for screen recording on Raspberry Pi
Shinya Saito [Thu, 22 Oct 2015 02:44:49 +0000 (11:44 +0900)]
Provide damage region for screen recording on Raspberry Pi

When trying to do sceen recording using the screenshooter, no screen data
was ever processed because the rpi-renderer never set the previous frames
damage area.

Update the rpi-renderer to copy the necessary data.

Signed-off-by: Shinya Saito <ssaito@igel.co.jp>
Signed-off-by: Tomohito Esaki <etom@igel.co.jp>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agoivi-shell: rename ivi_controller_interface
Ucan, Emre \(ADITG/SW1\) [Thu, 15 Oct 2015 14:51:41 +0000 (14:51 +0000)]
ivi-shell: rename ivi_controller_interface

The name of ivi_controller_interface is changed to ivi_layout_interface
with this patch.

This name is better suited to the interface, because it is implemented
in ivi-layout.c and its methods are linked to ivi_layout* functions.

Furthermore, the controller modules (e.g. hmi-controller) are the users
of this interface and they have their own interfaces,
which are called *_controller_interface,
e.g.: ivi_hmi_controller_interface.

This causes confusion about the software architecture.

Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Tested-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
8 years agocompositor: Disallow negative geometries in backend output configs
Bryce Harrington [Fri, 23 Oct 2015 22:29:23 +0000 (15:29 -0700)]
compositor: Disallow negative geometries in backend output configs

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Giulio Camuffo <giuliocamuffo@gmail.com>
8 years agodesktop-shell: Make activate_binding take a view instead of surface
Jonas Ådahl [Fri, 26 Jun 2015 04:37:56 +0000 (12:37 +0800)]
desktop-shell: Make activate_binding take a view instead of surface

In preparation for further refactoring. This patch also removes a
redundant NULL check. Since we pass views, and views will always have an
associated surface, there is no point of checking if it has.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agomain: stub the functions to load the backends with the new config system
Giulio Camuffo [Sat, 17 Oct 2015 16:24:15 +0000 (19:24 +0300)]
main: stub the functions to load the backends with the new config system

Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agocompositor: pass the backend config struct to the backends init function
Giulio Camuffo [Sat, 17 Oct 2015 16:24:14 +0000 (19:24 +0300)]
compositor: pass the backend config struct to the backends init function

Add new configuration argument to the backend_init() function, which
will replace the current argc, argv, and config arguments.
After each backend is converted individually the unused parameters
will be removed.

Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agocompositor: introduce structs to handle backends configuration
Giulio Camuffo [Sat, 17 Oct 2015 16:24:13 +0000 (19:24 +0300)]
compositor: introduce structs to handle backends configuration

This commit introduces the structs weston_backend_config and
weston_backend_output_config, to prepare for the new config
system for the backends.

Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agozunitc: made name of test fixture parameter explicit.
Jon Cruz [Fri, 23 Oct 2015 04:11:12 +0000 (21:11 -0700)]
zunitc: made name of test fixture parameter explicit.

Instead of using the implicit name 'data', changed the test
with fixture macro ZUC_TEST_F() to use an additional value
to explicitly set the name to use for test data from the
fixture.

Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
8 years agozunitc: Clarify documentation on return behavior.
Jon Cruz [Thu, 22 Oct 2015 20:25:54 +0000 (13:25 -0700)]
zunitc: Clarify documentation on return behavior.

* Clarify documentation on ZUC_ASSERT_* behavior in regards to return
   vs. abort()
* Added overview section on return behavior.
* Fixed spelling
* Removed outdated reference to tap function.

Changes since v1:

* Incorporated grammatical feedback.

Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>