platform/upstream/weston.git
9 years agoDocumentation for the prepare_lock_surface event description, is incorrect
Christopher Michael [Mon, 13 Jul 2015 19:57:41 +0000 (12:57 -0700)]
Documentation for the prepare_lock_surface event description, is incorrect

Documentation for the prepare_lock_surface event description is
incorrect. The summary says "Tell the client..." however the full-text
description says "tell the shell..."

Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoscreen-share: Use the correct list pointer when freeing shm buffers
Bryce Harrington [Sat, 11 Jul 2015 01:52:56 +0000 (18:52 -0700)]
screen-share: Use the correct list pointer when freeing shm buffers

The wl_list_for_each operation on the free_buffers list should use
free_link not link, which is a different list.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
9 years agocompositor: make sure to reset views' pointers to destroyed output
Giulio Camuffo [Sun, 12 Jul 2015 07:52:32 +0000 (10:52 +0300)]
compositor: make sure to reset views' pointers to destroyed output

When an output is being destroyed reassign the output of the views
that were in it, to be sure not to keep a dangling pointer which could
be used later on by calling weston_surface_assign_output() on the
view's surface.
Also make sure we send wl_surface.leave events to the surfaces that
were in that output.

Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
9 years agocompositor-wayland: Use the correct list pointer when freeing shm buffers
Derek Foreman [Fri, 29 May 2015 21:32:52 +0000 (16:32 -0500)]
compositor-wayland: Use the correct list pointer when freeing shm buffers

The wl_list_for_each operation on the free_buffers list should use
free_link not link, which is a different list.

This fixes a crash when entering fullscreen mode when using the pixman
renderer on the wayland back-end.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
9 years agoxwayland: Allow dump_property when selection fails
Bryce Harrington [Sat, 11 Jul 2015 01:13:48 +0000 (18:13 -0700)]
xwayland: Allow dump_property when selection fails

dump_property allows reply to be NULL.  Calling it unconditionally will
ensure user knows where the selection failed.

Also refactor code a bit.

Suggested by Marek Chalupa

9 years agoxwayland: Check return of xcb_get_property_reply() before deref
Bryce Harrington [Fri, 10 Jul 2015 04:30:16 +0000 (21:30 -0700)]
xwayland: Check return of xcb_get_property_reply() before deref

The man pages indicate this routine can return NULL on certain error
conditions.

Suggested by Marek Chalupa

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
9 years agodesktop-shell: make client_initiated a bool
Derek Foreman [Wed, 3 Jun 2015 20:53:22 +0000 (15:53 -0500)]
desktop-shell: make client_initiated a bool

Make it a bool in both surface_move() and struct weston_move_grab

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
9 years agocompositor: move the main() to a new main.c file
Giulio Camuffo [Sat, 11 Oct 2014 21:24:25 +0000 (00:24 +0300)]
compositor: move the main() to a new main.c file

This commits starts to separate the libweston code from the weston
specific code. As such, the main() is moved, together with signals
handling and configuration handling.

The definition of DEFAULT_REPAINT_WINDOW is left in compositor.c, so the
config loading of repaint_msec is slightly modified to account that.

Acked-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agocompositor: add API to manage compositor instances
Giulio Camuffo [Sat, 11 Oct 2014 20:56:24 +0000 (23:56 +0300)]
compositor: add API to manage compositor instances

This commit adds three new exported functions:
- weston_compositor_create() returns a new weston_compositor instance,
initializing it as the now removed weston_compositor_init() did.
- weston_compositor_exit(compositor) asks the compositor to tear
down by calling the compositor's exit vfunc which is set by the
libweston application.
- weston_compositor_destroy(compositor) is called by the libweston
application when tearing down the compositor. The compositor is destroyed
and the memory freed.

Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoxwayland: Always free reply from xcb_get_property_reply()
Bryce Harrington [Wed, 1 Jul 2015 04:35:43 +0000 (21:35 -0700)]
xwayland: Always free reply from xcb_get_property_reply()

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
9 years agoclients: Simplify memory allocation with xzalloc()
Bryce Harrington [Fri, 19 Jun 2015 23:12:22 +0000 (16:12 -0700)]
clients: Simplify memory allocation with xzalloc()

It is redundant to check x*alloc's return value for null pointers, since
they are guaranteed to either return non-NULL or terminate the program.

In cases where we memset the malloc'd memory to 0, we can more
efficiently use the xzalloc() routine.  zalloc looks for opportunities
to return memory chunks that have already been zero'd out, so it can
provide better performance.

This patch addresses this warning, reported by Denis Denisov:

  [clients/window.c:1164] -> [clients/window.c:1166]: (warning) Possible
  null pointer dereference: surface - otherwise it is redundant to check
  it against null.

  [clients/window.c:4513] -> [clients/window.c:4514]: (warning) Possible
  null pointer dereference: surface - otherwise it is redundant to check
  it against null.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
9 years agoweston-launch: Drop redundant exit()
Bryce Harrington [Fri, 19 Jun 2015 22:47:40 +0000 (15:47 -0700)]
weston-launch: Drop redundant exit()

error(1, ...) already will exit, per man page: "If status has a nonzero
value, then error() calls exit(3) to terminate the program using the
given value as the exit status."  So exit(EXIT_FAILURE) is never
reached.

The EXIT_FAILURE macro is guaranteed to be non-zero.  Typically it's
just 1, but on some systems (e.g. OpenVMS apparently) exit(1) means
success so EXIT_FAILURE there is defined to some other non-zero value.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Marek Chalupa <mchqwerty@gmail.com>
9 years agocompositor: introduce struct weston_backend
Giulio Camuffo [Sat, 11 Oct 2014 15:27:30 +0000 (18:27 +0300)]
compositor: introduce struct weston_backend

This is a preliminary change for libweston, with no functional modifications.
Separate the backends and the core weston_compositor struct, by creating
the weston_compositor in the main(), and having the various backends extend
the weston_backend struct, an instance of which is returned by the backend
entry point.
This enable us to logically separate the compositor core from the backend,
allowing the core to be extended without messing with the backends.

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoAdded simple unit/integration test framework and corresponding test program.
Jon A. Cruz [Fri, 3 Jul 2015 06:36:44 +0000 (23:36 -0700)]
Added simple unit/integration test framework and corresponding test program.

Added a simple C-based test framework and an example program
that uses it to run through some simple unit tests.

This is new code inspired primarily by the approaches of Google
Test, Boost Test, JUnit and TestNG. Factors of others were also
considered during design and implementation.

Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agodesktop-shell: Allow fullscreen windows to mode-switch their output.
Mario Kleiner [Sun, 21 Jun 2015 19:25:12 +0000 (21:25 +0200)]
desktop-shell: Allow fullscreen windows to mode-switch their output.

Fix desktop-shell's activate() method to only restore the output
mode on the single output on which a shell surface gets activated.

This way toplevel fullscreen surfaces can mode-switch their output
via method WL_SHELL_SURFACE_FULLSCREEN_METHOD_DRIVER and that
temporary mode properly persists until the surface loses its
fullscreen status, but effects like window switching and exposay
still work in the expected way.

v2: Split into a separate patch from original patch
    "Allow restore_output_mode() to work properly.",
    as suggested by Derek Foreman.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Cc: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agocompositor-drm: fix drm_waitvblank_pipe() decl style
Pekka Paalanen [Thu, 2 Jul 2015 12:06:08 +0000 (15:06 +0300)]
compositor-drm: fix drm_waitvblank_pipe() decl style

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agocompositor-drm: Add comment for newly added drm_waitvblank_pipe()
Bryce Harrington [Tue, 30 Jun 2015 20:25:46 +0000 (13:25 -0700)]
compositor-drm: Add comment for newly added drm_waitvblank_pipe()

9 years agocompositor-drm: Handle more than two output crtcs per card
Mario Kleiner [Sun, 21 Jun 2015 19:25:13 +0000 (21:25 +0200)]
compositor-drm: Handle more than two output crtcs per card

Allow proper handling of output->pipe > 1 to support
triple-head graphics cards etc. by using the "high-crtc"
support introduced in Linux 2.6.39 and libdrm 2.4.25
around May 2011.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
9 years agocompositor-drm: Allow weston_output_mode_switch_to_native() to work.
Mario Kleiner [Sun, 21 Jun 2015 19:25:11 +0000 (21:25 +0200)]
compositor-drm: Allow weston_output_mode_switch_to_native() to work.

Initialize output->native_mode with the initially chosen
mode for an output, so weston_output_mode_switch_to_native()
has something to work with and can switch back from temporary
selected modes to the outputs native mode. Before, this was a
no-op.

This allows an output to switch back to its default mode if
a former toplevel fullscreen shell surface created via method
WL_SHELL_SURFACE_FULLSCREEN_METHOD_DRIVER gets destroyed, or
it gets demoted to non-fullscreen, or if modesetting on the
output failed for some reason.

v2: Modified and split into a separate patch from original
    patch "Allow restore_output_mode() to work properly.",
    as suggested by Derek Foreman.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Cc: Derek Foreman <derekf@osg.samsung.com>
Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
9 years agocompositor-drm: Fix refresh rate selection in drm_output_switch_mode
Mario Kleiner [Sun, 21 Jun 2015 19:25:09 +0000 (21:25 +0200)]
compositor-drm: Fix refresh rate selection in drm_output_switch_mode

The matching logic in choose_mode() compared refresh rate
of a drm_mode candidate mode expressed in Hz against the
requested refresh rate of the target weston_mode expressed
in milliHz, so the match always failed and the logic always
ended up the mode with the highest refresh rate for a given
resolution, instead of the one matching the requested rate.

Match proper fields to fix this.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
9 years agodesktop-shell: Allow multiple active fullscreen windows on multi-display setup.
Mario Kleiner [Sun, 21 Jun 2015 19:25:08 +0000 (21:25 +0200)]
desktop-shell: Allow multiple active fullscreen windows on multi-display setup.

Desktop shell demoted all fullscreen shell surfaces on all active
outputs of a multi-display setup whenever any shell surface was
activated anywhere. This made it impossible to have multiple
fullscreen windows on separate outputs active at the same
time, as creating or activating any shell surface would disable
fullscreen status for all existing fullscreen surfaces.

Make lower_fullscreen_layer() more selective, so on request it
only demotes fullscreen surfaces on a specified weston_output.

The activate() method for a specific surface will now only request
demotion of fullscreen surfaces on the target output of the activated
surface, but leave fullscreen surfaces on unrelated outputs alone.

Desktop wide acting functions like the window switcher or exposay
will still demote all fullscreen surfaces on all outputs to
implement their effect as before.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
9 years agoxdg-shell: Further clarify xdg_surface.resize semantics
Jonas Ådahl [Thu, 2 Apr 2015 07:13:51 +0000 (15:13 +0800)]
xdg-shell: Further clarify xdg_surface.resize semantics

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoxdg-shell: Further clarify xdg_surface.move semantics
Jonas Ådahl [Wed, 18 Mar 2015 12:29:10 +0000 (20:29 +0800)]
xdg-shell: Further clarify xdg_surface.move semantics

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agotext_backend: make destructor call explicit
Pekka Paalanen [Wed, 24 Jun 2015 13:09:17 +0000 (16:09 +0300)]
text_backend: make destructor call explicit

We used to rely on the order in which the
weston_compositor::destroy_signal callbacks happened, to not access
freed memory. Don't know when, but this broke at least with ivi-shell,
which caused crashes in random places on compositor shutdown.

Valgrind found the following:

 Invalid write of size 8
    at 0xC2EDC69: unbind_input_panel (input-panel-ivi.c:340)
    by 0x4E3B6BB: destroy_resource (wayland-server.c:537)
    by 0x4E3E085: for_each_helper.isra.0 (wayland-util.c:359)
    by 0x4E3E60D: wl_map_for_each (wayland-util.c:365)
    by 0x4E3BEC7: wl_client_destroy (wayland-server.c:675)
    by 0x4182F2: text_backend_notifier_destroy (text-backend.c:1047)
    by 0x4084FB: wl_signal_emit (wayland-server-core.h:264)
    by 0x4084FB: main (compositor.c:5465)
  Address 0x67ea360 is 208 bytes inside a block of size 232 free'd
    at 0x4C2A6BC: free (vg_replace_malloc.c:473)
    by 0x4084FB: wl_signal_emit (wayland-server-core.h:264)
    by 0x4084FB: main (compositor.c:5465)

 Invalid write of size 8
    at 0x4E3E0D7: wl_list_remove (wayland-util.c:57)
    by 0xC2EDEE9: destroy_input_panel_surface (input-panel-ivi.c:191)
    by 0x4E3B6BB: destroy_resource (wayland-server.c:537)
    by 0x4E3BC7B: wl_resource_destroy (wayland-server.c:550)
    by 0x40DB8B: wl_signal_emit (wayland-server-core.h:264)
    by 0x40DB8B: weston_surface_destroy (compositor.c:1883)
    by 0x40DB8B: weston_surface_destroy (compositor.c:1873)
    by 0x4E3B6BB: destroy_resource (wayland-server.c:537)
    by 0x4E3E085: for_each_helper.isra.0 (wayland-util.c:359)
    by 0x4E3E60D: wl_map_for_each (wayland-util.c:365)
    by 0x4E3BEC7: wl_client_destroy (wayland-server.c:675)
    by 0x4182F2: text_backend_notifier_destroy (text-backend.c:1047)
    by 0x4084FB: wl_signal_emit (wayland-server-core.h:264)
    by 0x4084FB: main (compositor.c:5465)
  Address 0x67ea370 is 224 bytes inside a block of size 232 free'd
    at 0x4C2A6BC: free (vg_replace_malloc.c:473)
    by 0x4084FB: wl_signal_emit (wayland-server-core.h:264)
    by 0x4084FB: main (compositor.c:5465)

 Invalid write of size 8
    at 0x4E3E0E7: wl_list_remove (wayland-util.c:58)
    by 0xC2EDEE9: destroy_input_panel_surface (input-panel-ivi.c:191)
    by 0x4E3B6BB: destroy_resource (wayland-server.c:537)
    by 0x4E3BC7B: wl_resource_destroy (wayland-server.c:550)
    by 0x40DB8B: wl_signal_emit (wayland-server-core.h:264)
    by 0x40DB8B: weston_surface_destroy (compositor.c:1883)
    by 0x40DB8B: weston_surface_destroy (compositor.c:1873)
    by 0x4E3B6BB: destroy_resource (wayland-server.c:537)
    by 0x4E3E085: for_each_helper.isra.0 (wayland-util.c:359)
    by 0x4E3E60D: wl_map_for_each (wayland-util.c:365)
    by 0x4E3BEC7: wl_client_destroy (wayland-server.c:675)
    by 0x4182F2: text_backend_notifier_destroy (text-backend.c:1047)
    by 0x4084FB: wl_signal_emit (wayland-server-core.h:264)
    by 0x4084FB: main (compositor.c:5465)
  Address 0x67ea368 is 216 bytes inside a block of size 232 free'd
    at 0x4C2A6BC: free (vg_replace_malloc.c:473)
    by 0x4084FB: wl_signal_emit (wayland-server-core.h:264)
    by 0x4084FB: main (compositor.c:5465)

Looking at the first of these, unbind_input_panel() gets called when the
text-backend destroys its helper client which has bound to input_panel
interface. This happens after the shell's destroy_signal callback has
been called, so the shell has already been freed.

The other two errors come from
  wl_list_remove(&input_panel_surface->link);
which has gone stale when the shell was destroyed
(shell->input_panel.surfaces list).

Rather than creating even more destroy listeners and hooking them up in
spaghetti, modify text-backend to not hook up to the compositor destroy
signal. Instead, make it the text_backend_init() callers' responsibility
to also call text_backend_destroy() appropriately, before the shell goes
away.

This fixed all the above Valgrind errors, and avoid a crash with
ivi-shell when exiting Weston.

Also using desktop-shell exhibited similar Valgrind errors which are
fixed by this patch, but those didn't happen to cause any crashes AFAIK.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
9 years agotests: test set for ivi-shell notification with bad condition in server side
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:37:41 +0000 (15:37 +0900)]
tests: test set for ivi-shell notification with bad condition in server side

These tests are implemented on test suite framework, which provides
internal method validation,
Following features are tested,
- add notification of ivi-layer with bad parameter
- add notification of ivi-surface configure with bad parameter
- add notification of creating ivi-layer with bad parameter
- add notification of creating ivi-surface with bad parameter
- add notification of removing ivi-layer with bad parameter
- add notification of removing ivi-surface with bad parameter

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: test set for ivi-shell notification in bad condition with helper client
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:36:21 +0000 (15:36 +0900)]
tests: test set for ivi-shell notification in bad condition with helper client

These tests are implemented on test suite framework, which provides
helper client.
Following features are tested,
- add notfication of ivi-surface with bad condition

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: test set for ivi-shell notification normal use case in server side
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:36:11 +0000 (15:36 +0900)]
tests: test set for ivi-shell notification normal use case in server side

These tests are implemented on test suite framework, which provides
internal method validation.
Following features are tested,
- notification of adding ivi-layer
- notification of creating ivi-layer
- notification of removing ivi-layer

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: test set for ivi-shell notification normal use case with helper client
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:35:58 +0000 (15:35 +0900)]
tests: test set for ivi-shell notification normal use case with helper client

These tests are implemented on test suite framework, which provides
helper client.
Following features are tested,
  - notification of adding ivi-surface
  - notification of ivi-surface configure
  - notification of creating ivi-surface
  - notification of removing ivi-surface

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: make the test context persistent
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:35:49 +0000 (15:35 +0900)]
tests: make the test context persistent

The TESTs in ivi_layout-test.c may have several server-side parts
(RUNNER_TEST in ivi_layout-test-plugin.c) each. Sometimes we need to
carry state from one RUNNER_TEST to another within one TEST, but not
across multiple TESTs. The correct lifetime of that state would be the
lifetime (and identity) of the runner_resource, as one TEST creates and
uses at most one weston_test_runner during its lifetime.

However, tests are executed one by one. Take a shortcut, and use a static
global for storing that state. This turns the test_context into a
singleton. To ensure it is not confused between multiple TESTs, add
asserts to verify its identity.

Following patches will add tests for notification callbacks. These will
be using the carried state.

[Pekka: add serialization checks, rename the global, rewrite commit message.]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: test set for ivi-screen with bad condition in server side
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:35:39 +0000 (15:35 +0900)]
tests: test set for ivi-screen with bad condition in server side

These tests are implemented on test suite framework, which provides
internal method validation,
Following features are tested,
- ivi-screen operation with bad parameter
- render order with bad parameter
- destroy ivi-layer in the ivi-screen and call commit_changes

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: test set for ivi-screen normal use case in server side
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:35:25 +0000 (15:35 +0900)]
tests: test set for ivi-screen normal use case in server side

These tests are implemented on test suite framework, which provides
internal method validation.
Following features are tested,
- ivi-screen id
- ivi-screen resolution
- render order of ivi-layers in ivi-screen

Signed-off-by: Nobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: test set for ivi-layer with bad condition in server side
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:35:12 +0000 (15:35 +0900)]
tests: test set for ivi-layer with bad condition in server side

These tests are implemented on test suite framework, which provides
internal method validation.
Following features are tested for ivi-layer,
- create with bad parameter
- visibility with bad parameter
- opacity with bad parameter
- destination rectangle with bad parameter
- orientation with bad parameter
- dimension with bad parameter
- position with bad parameter
- source rectangle with bad parameter
- properties with bad parameter
- destroy ivi-layer and call set_visibility_commit_changes
- destroy ivi-layer, call set_opacity, and commit_changes
- destroy ivi-layer, call set_orientation, and commit_changes
- destroy ivi-layer, call set_dimension, and commit_changes
- call set_position, destroy ivi-layer, and commit_changes
- call set_source_rectangle, destroy ivi-layer, and commit_changes
- call set_destination_rectangle, destroy ivi-layer, and commit_changes
- create duplicate
- destroy ivi-layer and call get_layer

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: test set for ivi-layer bad condition with helper-client
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:34:42 +0000 (15:34 +0900)]
tests: test set for ivi-layer bad condition with helper-client

These tests are implemented on test suite framework, which provides
helper client.
Following features are tested,
- bad render order of ivi-surface on ivi-layer
- call commitchanges after a ivi_surface in render order is destoryed

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: test set for ivi-layer normal use case in server side
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:34:18 +0000 (15:34 +0900)]
tests: test set for ivi-layer normal use case in server side

These tests are implemented on test suite framework, which provides
internal method validation.
Following features are tested for ivi-layer,
- create
- visibility
- opacity
- orientation
- dimension
- position
- destination rectangle
- source rectangle

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: test set for ivi-layer normal use case with helper client
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:34:09 +0000 (15:34 +0900)]
tests: test set for ivi-layer normal use case with helper client

These test are implemented on test suite framework, which provides
helper client.
Following features are tested,
- render order of ivi-surfaces on ivi-layer

Signed-off-by: Nobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: test set for ivi-surface with bad condition in server side
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:33:59 +0000 (15:33 +0900)]
tests: test set for ivi-surface with bad condition in server side

These tests are implemented on test suite framework, which provides
internal method validation.
Following features are tested for ivi-surface,
- destination_rectangle with bad parameter
- orientation with bad parameter
- dimension with bad parameter
- position with bad parameter
- source_rectangle with bad parameter
- properties with bad parameter

Signed-off-by: Nobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: test set for ivi-surface bad condition with helper client
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:33:26 +0000 (15:33 +0900)]
tests: test set for ivi-surface bad condition with helper client

These tests are implemented on test suite framework, which provides
helper client.
Following features are tested,
- ivi_layout_runner with basic_test_names[]
 - surface with bad opacity
- destroy ivi/wl_surface and call get_surface
- commit_changes_after_properties_set_surface_destroy with
  surface_property_commit_changes_test_names[]
 - call set_visibility, destroy ivi-surface, and commit_changes
 - call set_opacity, destroy ivi-surface, and commit_changes
 - call set_orientation, destroy ivi-surface, and commit_changes
 - call set_dimension, destroy ivi-surface, and commit_changes
 - call set_position, destroy ivi-surface, and commit_changes
 - call set_source_rectangle, destroy ivi-surface, and commit_changes
 - call set_destination_rectangle, destroy ivi-surface, and
  commit_changes

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agotests: test set for ivi-surface normal use case with helper client
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:33:17 +0000 (15:33 +0900)]
tests: test set for ivi-surface normal use case with helper client

These tests are implemented on test suite framework, which provides
helper client.
Following features are tested for ivi-surface
- orientation
- dimension
- position
- destination rectangle
- source rectangle

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
9 years agoivi-shell: rename to ivi_layout_layer_destroy()
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:32:23 +0000 (15:32 +0900)]
ivi-shell: rename to ivi_layout_layer_destroy()

"remove" is not proper name beacause it destorys a layer. The name of
the api is changed from layer_remove to layer_destroy.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi-shell: bugfix, update event_mask when new propertiy is not same as before.
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:32:14 +0000 (15:32 +0900)]
ivi-shell: bugfix, update event_mask when new propertiy is not same as before.

In previous code, it sends notification whenever setter calls. This
patch fixs that notification will not happens if there is no change of
properties by setter.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi-shell: bugfix, send notification when properties are changed according to event...
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:32:06 +0000 (15:32 +0900)]
ivi-shell: bugfix, send notification when properties are changed according to event mask.

Previous code sends notification without event mask. So the notification

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi-shell: add interface to get screen ID
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:31:57 +0000 (15:31 +0900)]
ivi-shell: add interface to get screen ID

This interface is required for user to manage screens per IDs.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi-shell: add new method to remove a callback to get notificaiton of ivi_layer prope...
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:31:39 +0000 (15:31 +0900)]
ivi-shell: add new method to remove a callback to get notificaiton of ivi_layer property changes.

To get property changes of ivi_layer, callbacks can be registered.
However there was no API to remove a callback rather than removing all
callbacks by using layer_remove_notification.
layer_remove_notification_by_callback can do it.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi-shell: add new method to remove a callback to get notification of ivi_surface...
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:31:26 +0000 (15:31 +0900)]
ivi-shell: add new method to remove a callback to get notification of ivi_surface property changes.

To get property changes of ivi_surface, callbacks can be registered.
However there was no API to remove a callback rather than remove all
callbacks by using surface_remove_notification.
surface_remove_notification_by_callback can do it.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi-shell: bugfix, add ref_count to ivi_layout_layer
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:31:16 +0000 (15:31 +0900)]
ivi-shell: bugfix, add ref_count to ivi_layout_layer

if a controller calls ivi_layout_layer_create_with_demenstion with a ID
which is already created before, the API returns exist ivi_layer.
However addtionally, it shall count up ref count to destroy ivi_layer
when ref count is 0. The previous code will destroy ivi_layer
immediately even if the other code still refers ivi_layer.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi-shell: fix ivi_shell_surface lifetime
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:31:08 +0000 (15:31 +0900)]
ivi-shell: fix ivi_shell_surface lifetime

ivi_shell_surface lifetime shall follow the ivi_surface protocol object
lifetime, and frees the ivi-id by destroying the ivi_layout_surface
from both wl_surface and ivi_surface destruction as the protocol specifies.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi-shell: make ivi_layout_surface destruction explicit
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:30:53 +0000 (15:30 +0900)]
ivi-shell: make ivi_layout_surface destruction explicit

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi-shell: bugfix, SEVG by adding NULL check in ivi_layout_get_screen_resolution
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:30:32 +0000 (15:30 +0900)]
ivi-shell: bugfix, SEVG by adding NULL check in ivi_layout_get_screen_resolution

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi-shell: Fix wrong link of wl_list_for_each() of ivilayer
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:30:19 +0000 (15:30 +0900)]
ivi-shell: Fix wrong link of wl_list_for_each() of ivilayer

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi-shell: bugfix, check limitation of ivi_layout_layer opacity
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:30:09 +0000 (15:30 +0900)]
ivi-shell: bugfix, check limitation of ivi_layout_layer opacity

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi-shell: bugfix, check limitation of ivi_layout_surface opacity
Nobuhiko Tanibata [Mon, 22 Jun 2015 06:29:20 +0000 (15:29 +0900)]
ivi-shell: bugfix, check limitation of ivi_layout_surface opacity

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agobuild: Use AM_CFLAGS instead of GCC_CFLAGS
Derek Foreman [Thu, 18 Jun 2015 16:43:11 +0000 (11:43 -0500)]
build: Use AM_CFLAGS instead of GCC_CFLAGS

AM_CFLAGS is the default for any target that doesn't specify its
own cflags.  We should use AM_CFLAGS in preference to GCC_CFLAGS
so we can change AM_CFLAGS and get all targets.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
[pekka: fixed patch conflicts]
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agodesktop-shell: remove screensaver support
Pekka Paalanen [Tue, 16 Jun 2015 10:56:57 +0000 (13:56 +0300)]
desktop-shell: remove screensaver support

This is a follow-up for the patch that removed weston-screensaver. The
aim is to clean up shell.c a little by removing non-essential
components. Vanilla Weston desktop is only a demo, external projects are
encouraged to create user-friendly desktop environments.

The support for launching a screensaver client and the protocol bindings
are removed. With them, all related configuration options are removed,
and the manuals are updated accordingly.

The screensaver protocol definition is left in desktop-shell.xml for
posterity.

This does not affect Weston's or desktop-shells ability to put screens
to sleep after inactivity. The inactivity timer continues to operate as
before. Also screen locking is unaffected.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Giulio Camuffo <giuliocamuffo@gmail.com>
9 years agoRemove weston-screensaver
Pekka Paalanen [Tue, 14 Apr 2015 07:25:33 +0000 (10:25 +0300)]
Remove weston-screensaver

This removes the weston-screensaver client.

Screensavers are not so useful, DPMS is much better. This example has
existed here for a good while, and things that we could learn from it
have been learnt.

Nowadays this is just dead weigth, which is usually not even compiled,
because it depends on both cairo-gl and GLU. Removing it removes the
only possible dependency to GLU and one user of cairo-gl. Now the last
user of cairo-gl is gears (clients/nested.c uses cairo-glesv2).

Support for screensavers is still left in desktop-shell, so external
projects can still have their screensavers if they want.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Giulio Camuffo <giuliocamuffo@gmail.com>
9 years agocompositor: add missing help text
JoonCheol Park [Fri, 12 Jun 2015 09:26:02 +0000 (18:26 +0900)]
compositor: add missing help text

The headless-backend.so was missing in available backend list

Signed-off-by: JoonCheol Park <jooncheol@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agocompositor: Add missing help text
Derek Foreman [Wed, 10 Jun 2015 21:57:09 +0000 (16:57 -0500)]
compositor: Add missing help text

Help messages were missing for some command line options.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoDo not install the new helpers macro header file.
Jon A. Cruz [Tue, 16 Jun 2015 20:15:14 +0000 (13:15 -0700)]
Do not install the new helpers macro header file.

Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoAdded new include file to all SOURCES variables with files that use it.
Jon A. Cruz [Tue, 16 Jun 2015 20:15:13 +0000 (13:15 -0700)]
Added new include file to all SOURCES variables with files that use it.

Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoivi: Use build dir instead of libexec dir in generated test ini file
Derek Foreman [Tue, 16 Jun 2015 18:30:35 +0000 (13:30 -0500)]
ivi: Use build dir instead of libexec dir in generated test ini file

We don't want to use installed binaries when running tests.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agocompositor-x11: More verbose logging
Bryce Harrington [Wed, 27 May 2015 01:14:21 +0000 (18:14 -0700)]
compositor-x11: More verbose logging

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agotext: cleanup text backend style
Murray Calavera [Tue, 9 Jun 2015 20:29:28 +0000 (20:29 +0000)]
text: cleanup text backend style

Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agogl-renderer: Don't print GL error for EGLGetDisplay()
Derek Foreman [Thu, 11 Jun 2015 17:14:45 +0000 (12:14 -0500)]
gl-renderer: Don't print GL error for EGLGetDisplay()

EGLGetDisplay() doesn't generate a GL error, so we shouldn't print one.

I've also renamed the goto labels so it's a little clearer when to use them.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoUnified multiple definitions of container_of() macro.
Jon Cruz [Mon, 15 Jun 2015 22:37:10 +0000 (15:37 -0700)]
Unified multiple definitions of container_of() macro.

Removed duplicate definitions of the container_of() macro and
refactored sources to use the single implementation.

Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
9 years agoMoved the MIN() macro to the helper include.
Jon Cruz [Mon, 15 Jun 2015 22:37:09 +0000 (15:37 -0700)]
Moved the MIN() macro to the helper include.

Removed multiple definitions of the MIN() macro from existing
locations and unified with a single definition. Updated sources
to use the shared version.

Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
9 years agoMoved helper macro to a discrete include file.
Jon Cruz [Mon, 15 Jun 2015 22:37:08 +0000 (15:37 -0700)]
Moved helper macro to a discrete include file.

To help reduce code duplication and also 'kitchen-sink' includes
the ARRAY_LENGTH macro was moved to a stand-alone file and
referenced from the sources consuming it. Other macros will be
added in subsequent passes.

Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
9 years agoRemove redundant #include path component.
Jon Cruz [Mon, 15 Jun 2015 22:37:07 +0000 (15:37 -0700)]
Remove redundant #include path component.

Using the parent '../' path component in #include statements makes
the codebase more rigid and is redundant due to proper -I use.

Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
9 years agoprotocol/text: Update boilerplate from MIT X11 license to MIT Expat license
Bryce Harrington [Mon, 15 Jun 2015 22:21:47 +0000 (15:21 -0700)]
protocol/text: Update boilerplate from MIT X11 license to MIT Expat license

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
9 years agoCOPYING: Specify origin of the library
Bryce Harrington [Sat, 13 Jun 2015 00:22:19 +0000 (17:22 -0700)]
COPYING: Specify origin of the library

9 years agoxwayland: Fix a couple whitespace errors
Bryce Harrington [Fri, 12 Jun 2015 17:17:39 +0000 (10:17 -0700)]
xwayland: Fix a couple whitespace errors

9 years agoxwayland: Update boilerplate from MIT X11 license to MIT Expat license
Bryce Harrington [Thu, 11 Jun 2015 23:22:34 +0000 (16:22 -0700)]
xwayland: Update boilerplate from MIT X11 license to MIT Expat license

9 years agowcap: Prefer quote form of include for config.h
Bryce Harrington [Thu, 11 Jun 2015 23:06:31 +0000 (16:06 -0700)]
wcap: Prefer quote form of include for config.h

9 years agowcap: Update boilerplate from MIT X11 license to MIT Expat license
Bryce Harrington [Thu, 11 Jun 2015 23:05:41 +0000 (16:05 -0700)]
wcap: Update boilerplate from MIT X11 license to MIT Expat license

9 years agotests: Update boilerplate from MIT X11 license to MIT Expat license
Bryce Harrington [Thu, 11 Jun 2015 22:39:40 +0000 (15:39 -0700)]
tests: Update boilerplate from MIT X11 license to MIT Expat license

9 years agovaapi-recorder: Drop redundant license
Bryce Harrington [Fri, 12 Jun 2015 20:53:35 +0000 (13:53 -0700)]
vaapi-recorder: Drop redundant license

This file was provided under both the Expat and X11 variants of the MIT
license.  We don't need the latter, so remove it and leave just Expat.
And reformat the Expat license so it matches our standard boilerplate.

9 years agoweston-egl-ext.h: Reformat license text
Bryce Harrington [Fri, 12 Jun 2015 20:52:15 +0000 (13:52 -0700)]
weston-egl-ext.h: Reformat license text

This file was already covered by the Expat variant of the MIT license.
Just reformat the text to match our standard boilerplate formatting.

9 years agolibbacklight: Add missing boilerplate to header
Bryce Harrington [Fri, 12 Jun 2015 17:15:36 +0000 (10:15 -0700)]
libbacklight: Add missing boilerplate to header

Use identical license and copyright as the .c file.

9 years agosrc: Update boilerplate from MIT X11 license to MIT Expat license
Bryce Harrington [Thu, 11 Jun 2015 22:35:43 +0000 (15:35 -0700)]
src: Update boilerplate from MIT X11 license to MIT Expat license

9 years agoshared: Update boilerplate from MIT X11 license to MIT Expat license
Bryce Harrington [Thu, 11 Jun 2015 21:20:17 +0000 (14:20 -0700)]
shared: Update boilerplate from MIT X11 license to MIT Expat license

9 years agoprotocol: Update boilerplate from MIT X11 license to MIT Expat license
Bryce Harrington [Thu, 11 Jun 2015 20:24:24 +0000 (13:24 -0700)]
protocol: Update boilerplate from MIT X11 license to MIT Expat license

9 years agoprotocol: whitespace cleanup
Bryce Harrington [Thu, 11 Jun 2015 20:24:08 +0000 (13:24 -0700)]
protocol: whitespace cleanup

9 years ago*-shell: Update boilerplate from MIT X11 license to MIT Expat licenses
Bryce Harrington [Thu, 11 Jun 2015 19:55:55 +0000 (12:55 -0700)]
*-shell: Update boilerplate from MIT X11 license to MIT Expat licenses

9 years agoclients: Update boilerplate from MIT X11 license to MIT Expat licenses
Bryce Harrington [Thu, 11 Jun 2015 05:48:59 +0000 (22:48 -0700)]
clients: Update boilerplate from MIT X11 license to MIT Expat licenses

9 years agodata: Update boilerplate from MIT X11 license to MIT Expat license
Bryce Harrington [Wed, 10 Jun 2015 21:48:07 +0000 (14:48 -0700)]
data: Update boilerplate from MIT X11 license to MIT Expat license

9 years agoCOPYING: Drop special license callout for libbacklight.c
Bryce Harrington [Wed, 10 Jun 2015 21:13:01 +0000 (14:13 -0700)]
COPYING: Drop special license callout for libbacklight.c

Weston's license is now identical to libbacklight.c, so just merge the
copyright statements.

9 years agoCOPYING: Update to MIT Expat License rather than MIT X License
Bryce Harrington [Wed, 10 Jun 2015 21:11:26 +0000 (14:11 -0700)]
COPYING: Update to MIT Expat License rather than MIT X License

MIT has released software under several slightly different licenses,
including the old 'X11 License' or 'MIT License'.  Some code under this
license was in fact included in X.org's Xserver in the past.  However,
X.org now prefers the MIT Expat License as the standard (which,
confusingly, is also referred to as the 'MIT License').  See
http://cgit.freedesktop.org/xorg/xserver/tree/COPYING

When Wayland started, it was Kristian Høgsberg's intent to license it
compatibly with X.org.  "I wanted Wayland to be usable (license-wise)
whereever X was usable."  But, the text of the older X11 License was
taken for Wweston, rather than X11's current standard.  This patch
corrects this by swapping in the intended text.

In practical terms, the most notable change is the dropping of the
no-advertising clause.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
9 years agocompositor: remove the authenticate vfunc
Giulio Camuffo [Thu, 11 Jun 2015 16:10:51 +0000 (19:10 +0300)]
compositor: remove the authenticate vfunc

It was introduced in 5fcd0aa58e243caf24f4deb080ac76e83d52213f and
then used in code that doesn't exist anymore.

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agodon't attempt to start input method if path is empty
Murray Calavera [Tue, 9 Jun 2015 20:28:06 +0000 (20:28 +0000)]
don't attempt to start input method if path is empty

This allows a user to explicitly disable the input
method by setting path to blank;

Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agomove text_backend initialization into the shell plugin
Murray Calavera [Wed, 10 Jun 2015 21:16:02 +0000 (21:16 +0000)]
move text_backend initialization into the shell plugin

Whether a input method is used should be the responsibility
of the shell because some shells may not want to implement
an input method at all

Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agotext: handle existing seats on init
Murray Calavera [Wed, 10 Jun 2015 21:15:30 +0000 (21:15 +0000)]
text: handle existing seats on init

a following patch will be moving text init call into shell
modules, which will be called much later than in current code

Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoWhitespace corrections
Murray Calavera [Sat, 6 Jun 2015 13:02:22 +0000 (13:02 +0000)]
Whitespace corrections

Signed-off-by: Murray Calavera <murray.calavera@gmail.com>
9 years agointernal-screenshot-test: Fix endian problem
Derek Foreman [Tue, 26 May 2015 17:00:49 +0000 (12:00 -0500)]
internal-screenshot-test: Fix endian problem

Use bit-shifts to properly generate pixel data.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
9 years agoscreenshooter: clean up recorder_binding a little
Derek Foreman [Wed, 3 Jun 2015 20:53:29 +0000 (15:53 -0500)]
screenshooter: clean up recorder_binding a little

We already have a pointer to the compositor so change seat->compositor to ec

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
9 years agoinput: clean up update_keymap a little
Derek Foreman [Wed, 3 Jun 2015 20:53:27 +0000 (15:53 -0500)]
input: clean up update_keymap a little

We already have a pointer to the keyboard, so we can change all
seat->keyboard to keyboard.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
9 years agoinput: minor clean up in weston_seat_repick()
Derek Foreman [Wed, 3 Jun 2015 20:53:23 +0000 (15:53 -0500)]
input: minor clean up in weston_seat_repick()

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
9 years agoinput: clean up notify_modifiers a little
Derek Foreman [Wed, 3 Jun 2015 20:53:26 +0000 (15:53 -0500)]
input: clean up notify_modifiers a little

We already have a pointer to the keyboard, so we can change all
seat->keyboard to keyboard.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
9 years agoinput: clean up seat_get_keyboard a little
Derek Foreman [Wed, 3 Jun 2015 20:53:28 +0000 (15:53 -0500)]
input: clean up seat_get_keyboard a little

We already have a pointer to the keyboard, so we can change all
seat->keyboard to keyboard

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
9 years agoconfigure.ac: bump version to 1.8.90
Bryce Harrington [Wed, 3 Jun 2015 07:11:24 +0000 (00:11 -0700)]
configure.ac: bump version to 1.8.90

Master is open for new features again

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
9 years agoconfigure.ac: bump to version 1.8.0 for the official release 1.8.0
Bryce Harrington [Tue, 2 Jun 2015 23:23:53 +0000 (16:23 -0700)]
configure.ac: bump to version 1.8.0 for the official release

9 years agointernal-screenshot-test: ignore output image
Derek Foreman [Thu, 28 May 2015 15:28:07 +0000 (10:28 -0500)]
internal-screenshot-test: ignore output image

In the future we should probably consider making all tests that output
images use an easily ignored template.

For now let's ignore this one individually.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
9 years agoreleasing: Convert tabs to spacing for better formatting
Bryce Harrington [Thu, 28 May 2015 06:55:08 +0000 (23:55 -0700)]
releasing: Convert tabs to spacing for better formatting