summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* compositor-drm: Add support for Tegra Jetson TK1baserock/weston-1.11.0/tegraJames Thomas2016-07-182-3/+110
| | | | Update configure.ac to add check for libdrm_tegra
* compositor-drm: Add new gbm struct to allow for a separate gbm deviceJames Thomas2016-07-181-20/+27
| | | | | This is needed for devices like tegra jetson where the gbm device is not the same as the drm device
* configure.ac: bump to version 1.11.0 for the official release1.11.0Bryce Harrington2016-05-311-2/+2
|
* releasing: Update script nameBryce Harrington2016-05-311-1/+1
|
* configure.ac: bump to version 1.10.93 for the RC1 release1.10.93Bryce Harrington2016-05-241-1/+1
|
* releasing: Update release docs in regards to the wayland versioned dependencyBryce Harrington2016-05-241-7/+4
|
* build: Define wayland prereq versionBryce Harrington2016-05-241-5/+7
| | | | | | | | | | | | | | Establishes a single variable for defining the libwayland version requirements, where we have versioned checks. Enforces the same version dependency between libwayland-client and libwayland-server. Developers typically only test the greater version of the two, so if they're different it masks cases that don't get tested adequately. So this sets wayland-client's required version to 1.10, same as for the server. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> Tested-by: Quentin Glidic <sardemff7+git@sardemff7.net>
* desktop-shell: Don’t reconfigure an already fullscreen surfaceEmmanuel Gil Peyrot2016-05-191-0/+7
| | | | | | | | | | | | | | When we receive an wl_shell_surface::set_fullscreen request for a surface that was already fullscreen, don’t do anything if the parameters are the same as the initial request. This prevents bogus or malicious clients from being able to always stay on front by flooding the compositor with set_fullscreen requests after the user has put them in the background with a mod+tab. Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> Reviewed-by: Yong Bakos <ybakos@humanoriented.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi: Fix spellings in commentsBryce Harrington2016-05-191-14/+14
|
* zunitc: use platform-independent macros for integer formattingEmmanuel Gil Peyrot2016-05-192-22/+27
| | | | | | | | Fixes warnings and potential issues on 32-bit platforms, tested only on ARM but I’d expect the same issue on i686. Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* compositor: use generated constant instead of hardcoded valueFORT David2016-05-191-1/+1
| | | | | | | Use SINCE macros instead of the hardcoded version value. Signed-off-by: David Fort <contact@hardening-consulting.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* rdp: Fix the ContextNew callback with recent FreeRDP versionsFORT David2016-05-191-1/+18
| | | | | | | | Since a quite long time FreeRDP expect the ContextNew callback to return TRUE when it succeeds. Without this we have some arbitrary failures (most probably when eax is 0 at the end of the function). Signed-off-by: David Fort <contact@hardening-consulting.com>
* rdp: allow to compile against FreeRDP 2.0FORT David2016-05-192-8/+20
| | | | | | | | | FreeRDP 2.0 is about to be released, this allows to compile against this version. The detection is adjusted to prefer FreeRDP 2 against version 1.x. Signed-off-by: David Fort <contact@hardening-consulting.com> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* configure.ac: bump to version 1.10.92 for the beta release1.10.92Bryce Harrington2016-05-171-1/+1
|
* compositor-drm: Prevent a crash in the pixman rendererEmmanuel Gil Peyrot2016-05-171-1/+2
| | | | | | | | | | When pixman is used and no connector could be found (or any other error), drm_backend_create() tried to destroy a gbm_device that would only be created in init_egl(), resulting in a segfault. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor-drm: Write a name in the mode generated from a modelineEmmanuel Gil Peyrot2016-05-171-0/+3
| | | | | | | | | | The current behaviour leaves the name empty, making it somewhat harder to determine the characteristics of this mode from a debugger. Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> [Pekka: wrap long line (ybakos)] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor-drm: Remove unused output reference in drm_fbEmmanuel Gil Peyrot2016-05-171-3/+0
| | | | | | Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor: surface and view output comment fixesPekka Paalanen2016-05-172-8/+9
| | | | | | | | | | | | | | weston_surface::output and weston_view::output as used for different purposes. Only the surface output is used for frame callbacks. The uses of the view output are much more vague and hard to describe. Also fix a comment mistake in weston_surface_assign_output(). Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Yong Bakos <ybakos@humanoriented.com> Reviewed-by: Armin Krezović <krezovic.armin@gmail.com> [Pekka: more verbose on the compositor.h comments]
* compositor: fix comments about weston_compositor::surface_listPekka Paalanen2016-05-171-4/+2
| | | | | | | | | | | | | | | | | | | | | | a7af70436b7dccfacd736626d6719b3e751fd985 converted the surface list into a view list. There is no weston_compositor::surface_list anymore. It looks like weston_surface::output's comment about surface list does not apply to view list. Still, many places assume weston_surface::output is not NULL when processing "visible" surfaces, e.g. those reachable via the view list. The comment on weston_view::output is updated. It seems there is no longer any requirement for it to be NULL if the view is not in view_list. weston_view::link is documented to be in weston_compositor::view_list, and weston_compositor::view_list is documented to contain weston_views. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Yong Bakos <ybakos@humanoriented.com> Reviewed-by: Armin Krezović <krezovic.armin@gmail.com> [Pekka: removed also the other "Must be NULL" comment.]
* eventdemo: use %u for uint32_t printingPekka Paalanen2016-05-161-6/+6
| | | | | | | | I was confused why timestamp was printed negative. This fixes it, and others while at it. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Benoit Gschwind <gschwind@gnu-log.net>
* eventdemo: do not print axis events if not requestedPekka Paalanen2016-05-131-0/+9
| | | | | | | | Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Yong Bakos <ybakos@humanoriented.com> Tested-by: Yong Bakos <ybakos@humanoriented.com> Reviewed-by: Benoit Gschwind <gschwind@gnu-log.net> Tested-by: Benoit Gschwind <gschwind@gnu-log.net>
* eventdemo: use zallocPekka Paalanen2016-05-131-1/+1
| | | | | | | | | | Zero-initialize the struct, just in case. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Yong Bakos <ybakos@humanoriented.com> Tested-by: Yong Bakos <ybakos@humanoriented.com> Reviewed-by: Benoit Gschwind <gschwind@gnu-log.net> Tested-by: Benoit Gschwind <gschwind@gnu-log.net>
* eventdemo: do not print pointer frames alonePekka Paalanen2016-05-131-0/+26
| | | | | | | | | | | | | | | Print pointer frames only if any pointer related events are printed first. This avoids flooding the output with "pointer frame" just because of motion. You can test this with e.g. $ ./weston-eventdemo --log-button Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Yong Bakos <ybakos@humanoriented.com> Tested-by: Yong Bakos <ybakos@humanoriented.com> Reviewed-by: Benoit Gschwind <gschwind@gnu-log.net> Tested-by: Benoit Gschwind <gschwind@gnu-log.net>
* data: Some client iconsBryce Harrington2016-05-126-0/+1033
| | | | | | | | | | | This adds an alternate weston terminal icon and icons for the flower and editor clients. The original Inkscape SVG file is included. Example screenshot: http://www.bryceharrington.org/Files/weston-icons.png Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
* ivi-layout: clarify get_layers_under_surface docPekka Paalanen2016-05-121-1/+4
| | | | | | | | This is derived from the implementation. I was not sure whether "under" referred to object relationships or region intersections. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Emre Ucan <eucan@de.adit-jv.com>
* ivi-shell-user-interface: ignore all but first seatPekka Paalanen2016-05-121-0/+4
| | | | | | | | | This client should support binding to multiple seats, but as it does not, make a quick and dirty fix to ignore all seats beyond the first one. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Emre Ucan <eucan@de.adit-jv.com>
* main: let load_wayland_backend() clean up on errorBenoit Gschwind2016-05-111-7/+4
| | | | | | | | | | | | | | weston_wayland_backend_config_release() does not bother reinitializing the structure, it simply frees what is there. This leads to a structure containing garbage, which might be a surprise. Require, that if load_wayland_backend_config() fails, the caller must call weston_wayland_backend_config_release() regardless. Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> [Pekka: rewrote commit message] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* main: rename new_config arg of weston_wayland_backend_config_add_new_outputBenoit Gschwind2016-05-111-6/+6
| | | | | | | | Rename new_config to config to follow legacy naming scheme. Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* main: rename new_config arg of weston_wayland_backend_config_releaseBenoit Gschwind2016-05-111-6/+6
| | | | | | | | Rename new_config to config to follow legacy naming scheme. Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* main: rename wayland_backend_config_release functionBenoit Gschwind2016-05-111-3/+3
| | | | | | | | | | Rename the wayland_backend_config_release function to weston_wayland_backend_config_release to follow legacy naming scheme. Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> [Pekka: rebased] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* main: rename wayland_backend_config_add_new_output functionBenoit Gschwind2016-05-111-4/+4
| | | | | | | | | | | Rename wayland_backend_config_add_new_output to weston_wayland_backend_config_add_new_output to follow the legacy naming scheme. Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> [Pekka: rebased] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* main: replace and remove new_config in load_wayland_backend_configBenoit Gschwind2016-05-111-28/+22
| | | | | | | | | | | Remove the unseless intermediate variable new_config in the function load_wayland_backend_config, replacing it by the renamed parameter 'config'. Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> [Pekka: Squashed in "compositor-wayland: rename out_config arg of load_wayland_backend_config".] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* main: rename load_wayland_backend_config arg "config" to wcBenoit Gschwind2016-05-111-3/+3
| | | | | | | | | | Rename the load_wayland_backend_config arg "config" to use this name for another variable in the following patch. It also follow the legacy naming scheme. Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor-wayland: move configuration parsing to weston main.cBenoit Gschwind2016-05-112-221/+231
| | | | | | | | | | | | | | | Move function load_wayland_backend_config, wayland_backend_config_add_new_output, wayland_backend_config_release, weston_wayland_output_config_init from compositor-wayland.c to main.c. Not a single character is changed in those functions. Create a glue function load_wayland_backend to use moved functions and following the new load_*_backend style. Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Acked-by: Quentin Glidic <sardemff7+git@sardemff7.net> [Pekka: removed left-over entry from load_backend().] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor-wayland: add versionning to config structureBenoit Gschwind2016-05-112-3/+29
| | | | | | | | | The patch use temporary code that prepare the patch: "compositor-wayland: move configuration parsing to weston main.c" Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
* compositor-wayland: rename misleading output arg of ↵Benoit Gschwind2016-05-111-19/+19
| | | | | | | | | | | weston_wayland_output_config_init Rename the misleading output argument to output_config in the weston_wayland_output_config_init function. Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
* compositor-wayland: rename wayland_output_init_from_configBenoit Gschwind2016-05-111-6/+6
| | | | | | | | | | | Rename wayland_output_init_from_config to weston_wayland_output_config_init to prepare the following patch : "compositor-wayland: move configuration parsing to weston" Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> [Pekka: drop a useless comment] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor-wayland: fix spacing and lines wrapingBenoit Gschwind2016-05-111-7/+12
| | | | | | | Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> [Pekka: squashed with "compositor-wayland: fix too long lines".] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
* drm: port the drm backend to the new init apiGiulio Camuffo2016-05-104-133/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Preparing for libweston and for the separation of the code base into libweston vs. weston the compositor, we must remove all uses weston_config structures from the backends. We have decided that all option and config input happens in the compositor (main.c), and configuration is passed in for the backends as structs. Most other backends have already converted, and this patch converts the DRM-backend to the libweston-style init API. The libweston-style init API includes a header for each backend (here compositor-drm.h) defining the configuration interface. The compositor (main.c) prepares a configuration struct to be passed through libweston core to the backend during initialization. A complication with the DRM-backend is that outputs can be hotplugged, and their configuration needs to be fetched from the compositor (main.c). For this, the config struct contains a callback member. The output configuration API is subject to change later, this is just a temporary API to get libweston forward. As weston_compositor's user_data was not previously used for anything, and the output configuration callback needs data, the user_data is set to the 'config' pointer. This pointer is only used in drm_configure_output() in main.c. [Bryce: lots of stuff and rebasing] Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Tested-by: Benoit Gschwind <gschwind@gnu-log.net> [Pekka: write commit message] [Pekka: squash in "drm: Don't hang onto the backend config object post-backend_init" from Bryce Harrington] [Pekka: drop the compositor.h hunk] [Pekka: do not #include inside extern "C"] [Pekka: remove incorrect comment about weston_drm_backend_config ownership.] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor: refactor into convert_size_by_transform_scale()Pekka Paalanen2016-05-061-40/+40
| | | | | | | | There were two copies of code applying transform and scale to size. Refactor the code to use just one copy in a new function. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* compositor: constify weston_surface_build_buffer_matrix()Pekka Paalanen2016-05-061-2/+2
| | | | | | | | Makes it easier to see that it does not change weston_surface state implicitly. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* releasing: Correct documentation for script nameBryce Harrington2016-05-041-1/+1
| | | | Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
* compositor-wayland: put configuration structure in separate headerBenoit Gschwind2016-05-043-19/+62
| | | | | | Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> [Pekka: moved #include out of extern "C".] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor-wayland: split backend_initBenoit Gschwind2016-05-041-53/+126
| | | | | | | | | | | Extract configuration parsing from init_backend function. The new init_backend start by generating the configuration structure from configuration file with separated function and then use this structure to load the backend. Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> [Pekka: rebased] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor-wayland: split wayland_output_create_for_configBenoit Gschwind2016-05-041-36/+68
| | | | | | | | | | | | | The splitting intend to separate configuration parsing from output setup. Introduces struct weston_wayland_backend_output_config. Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> [Pekka: squashed "wayland-backend: define output configuration structure" into this.] [Pekka: fix fullscreen output scale back to 1.] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor-wayland: move config parsing in create_cursorBenoit Gschwind2016-05-041-13/+19
| | | | | | | | Move configuration parsing from create_cursor to backend_init. Use newer configuration structure to initialize the cursor in create_cursor. Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor-wayland: use new config struture to create backendBenoit Gschwind2016-05-041-7/+6
| | | | | Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor-wayland: fix memory leak of display_nameBenoit Gschwind2016-05-041-0/+2
| | | | | Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* compositor-wayland: create a basic config structure to use in new init APIBenoit Gschwind2016-05-041-14/+23
| | | | | Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* libinput: Remove unused static valuesDaniel Stone2016-05-041-3/+0
| | | | | | | default_seat and default_seat_name are not used anywhere in this file. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>