summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename screenshooter protocol to weston_screenshooterJonas Ådahl2015-11-194-22/+27
| | | | | | | | | 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>
* desktop-shell: Rename protocol weston_desktop_shellJonas Ådahl2015-11-196-99/+95
| | | | | | | | | | | | | 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>
* Use xdg_shell protocol from wayland-protocolsJonas Ådahl2015-11-198-637/+20
| | | | | | | 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>
* Makefile.am: Make the external xml scanning rule version genericJonas Ådahl2015-11-191-3/+11
| | | | | | 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>
* Use input method protocol from wayland-protocolsJonas Ådahl2015-11-197-470/+199
| | | | | | | 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>
* Use text input protocol from wayland-protocolsJonas Ådahl2015-11-196-501/+135
| | | | | | | 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>
* Use linux-dmabuf protocol from wayland-protocolsJonas Ådahl2015-11-195-338/+63
| | | | | | 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>
* Use fullscreen-shell.xml from wayland-protocolsJonas Ådahl2015-11-1910-353/+164
| | | | | | | | | | 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>
* compositor-wayland: Change focus to a bool instead of an intDerek Foreman2015-11-161-8/+10
| | | | | | | 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>
* desktop-shell: use weston_pointer_send_axisPeter Hutterer2015-11-161-7/+1
| | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
* shared: work around EGL header idiosyncrasyAhmet Acar2015-11-131-0/+1
| | | | | | | | | | | | | | | | 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)
* compositor-drm: pass NULL to mmap() instead of 0 as the addressChris Michael2015-11-121-1/+1
| | | | | | | | 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>
* compositor-drm: fall back to EGL visual_id 0 if no others workDerek Foreman2015-11-071-3/+4
| | | | | | | | | | 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>
* input: Pass axis events through pointer grab interfacesJonas Ådahl2015-11-026-6/+83
| | | | | | | | 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>
* desktop-shell: Add surface_keyboard_focus_lost helperJonas Ådahl2015-11-021-25/+22
| | | | | Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-By: Derek Foreman <derekf@osg.samsung.com>
* Provide damage region for screen recording on Raspberry PiShinya Saito2015-10-291-0/+1
| | | | | | | | | | | | 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>
* ivi-shell: rename ivi_controller_interfaceUcan, Emre \(ADITG/SW1\)2015-10-295-552/+552
| | | | | | | | | | | | | | | | | | | 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>
* compositor: Disallow negative geometries in backend output configsBryce Harrington2015-10-291-3/+3
| | | | | Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Giulio Camuffo <giuliocamuffo@gmail.com>
* desktop-shell: Make activate_binding take a view instead of surfaceJonas Ådahl2015-10-231-5/+5
| | | | | | | | | 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>
* main: stub the functions to load the backends with the new config systemGiulio Camuffo2015-10-231-9/+59
| | | | Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* compositor: pass the backend config struct to the backends init functionGiulio Camuffo2015-10-239-10/+19
| | | | | | | | | 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>
* compositor: introduce structs to handle backends configurationGiulio Camuffo2015-10-231-2/+34
| | | | | | | | 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>
* zunitc: made name of test fixture parameter explicit.Jon Cruz2015-10-234-32/+47
| | | | | | | | | | 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>
* zunitc: Clarify documentation on return behavior.Jon Cruz2015-10-232-39/+132
| | | | | | | | | | | | | | | * 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>
* clients: don't discard motion if we have a grabDerek Foreman2015-10-231-3/+4
| | | | | | | | | | | | | | | We discard motion outside the window on the assumption it's from before some event that caused the window to shrink. However, if we have a grab it's likely that this motion is actually from dragging from the inside of the window out. This fixes a problem where drag selecting in weston terminal behaves oddly - it doesn't update the select region while the drag is happening outside the window. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Tested-by: Luis de Bethencourt <luisbg@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* clients: try harder to discard motion after resizeDerek Foreman2015-10-231-1/+3
| | | | | | | | | | If we're going to ignore motion below and to the right when coming out of maximize, we should probably also ignore it above and to the left. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Tested-by: Luis de Bethencourt <luisbg@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* weston-launch: Remove unused event sourceDerek Foreman2015-10-231-2/+0
| | | | | | | | | | vt_source is never added to an event loop in this launcher, but it's potentially removed. Let's just remove the variable entirely. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* clients: Correct drawing glitch in stacking demoBen Hummon2015-10-211-4/+0
| | | | | | | | Fix a graphics glitch in the stacking demo in which a transient window's drop shadow is visibile within the interior of the window. Signed-off-by: Ben Hummon <benjamin.hummon@gmail.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
* compositor/clients: Protect CLOCK_BOOTTIME with ifdefsDerek Foreman2015-10-212-0/+4
| | | | | | | | | | | CLOCK_BOOTTIME is a relatively new* feature that may not actually be present everywhere (I'm looking at you wheezy). Since our use of it is actually only cosmetic, I've just ifdef'd if. * No it isn't. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Giulio Camuffo <giuliocamuffo@gmail.com>
* build: Add -lrt for programs that use clock_gettime()Derek Foreman2015-10-211-2/+2
| | | | | | | | glibc requires this prior to 2.17, and we already do it in a few other places. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Giulio Camuffo <giuliocamuffo@gmail.com>
* devices-test: Fix typo 'destroyes' in a commentBryce Harrington2015-10-201-8/+9
|
* clients: track seat_version per seat, not per displayDerek Foreman2015-10-191-9/+11
| | | | | | | | | | | | | Apparently it's possible for a compositor to advertise seats with different versions on the same connection, so this makes us more robust against that dubious behaviour. This also tracks the seat version we requested instead of the advertised maximum. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: David FORT <contact@hardening-consulting.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* libinput: remove unused #defineGiulio Camuffo2015-10-191-2/+0
| | | | Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
* configure: Up the libwayland version requirementBryce Harrington2015-10-151-2/+2
| | | | | | | | | | | | | | weston commit f7bb9352 requires recent libwayland changes for providing ‘WL_POINTER_RELEASE_SINCE_VERSION’. Increase the version requirement to indicate that current weston git requires development version of wayland. NOTE: At release we should probably increase the wayland requirement for weston to 1.10.0. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* ivi-shell: install ivi-layout-export.hUcan, Emre \(ADITG/SW1\)2015-10-151-0/+5
| | | | | | | | | | | | IVI-Shell is designed to be used with other controller modules than hmi-controller.These controller modules require the ivi-layout-export header file to properly integrate with the ivi-shell. The header file should be installed when ivi-shell is enabled, because these controller modules are not a part of the weston repository. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* Add commented-out option to weston.ini to set Xwayland pathBill Spitzak2015-10-151-0/+3
| | | | | User can remove the comment marks to make xwayland.so use a local installed Xwayland server.
* compositor-drm: fix cursor size test in drm_assign_planesDerek Foreman2015-10-151-1/+2
| | | | | | | | | | | | | | | | | | | In commit 70d337dfd we changed one cursor size test from a hard coded 64,64 to the actual device provided width, height. The test in drm_assign_planes remained fixed at 64, 64. The simple-shm test ended up being small enough to fit into a cursor plane by one test, but too large by the test in drm_assign_planes. We'd assign to the cursor plane but not keep a reference. weston-simple-shm would disappear and be replaced with the previous cursor image. This partially "fixes" T3361. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
* screenshooter: correct output ordering of screencast recording when Y-flip ↵Tomohito Esaki2015-10-141-3/+3
| | | | | | | | | | | | | is off The screenshooter encoder wrote the output from either top-to-bottom or bottom-to-top, depending on the Y-flip setting, but wcap-decode only decodes from bottom-to-top. Make the encoder always output from bottom-to-top, to match the decoder, and flip the input (source) according to the Y-flip setting. Signed-off-by: Tomohito Esaki <etom@igel.co.jp> Reviewed-by: Giulio Camuffo <giuliocamuffo@gmail.com>
* input: Split get_udev_seat() into its own functionDerek Foreman2015-10-141-5/+12
| | | | | | | | | We're going to need this on device removal in the future, so pull it out into a separate function now. Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* compositor-x11: Fix Weston running on a secondary X screenMarko2015-10-091-11/+23
| | | | | | | | When DISPLAY is anything other than #.0 weston would still use .0 Fixes https://bugs.freedesktop.org/show_bug.cgi?id=90532 Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* shell: fix maximizing windows on a secondary outputMarek Chalupa2015-10-091-4/+2
| | | | | | | | | | | commit f814c5dc9 changed get_output_work_area behaviour which broke the code for positioning maximized window. The x position was set to 2*output->x instead of to output->x fix https://bugs.freedesktop.org/show_bug.cgi?id=92357 Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
* weston: release keyboard/touch/pointer objectsFORT David2015-10-091-4/+22
| | | | | | | | | | This patch adds the missing calls to release when the seat has capabilities changes. It also fixes a missing release of the touch object and a leak with old clients. Signed-off-by: David FORT <contact@hardening-consulting.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
* input: add new client to resource_list instead of focus_resource_listChokshi, Mitul2015-10-091-2/+2
| | | | | | | | | | | When new client registers touch listener, it was added to focus resource list. At this point if another client "without" touch listener is in focus then subsequent touch events are sent to new client with another client's resources causing new client to stop rendering. Now new client is added to resource list by default and it'll be added to focus resource list only if its in focus. Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
* zoom: remove temporary variablesGiulio Camuffo2015-10-091-12/+4
| | | | | Signed-off-by: Giulio Camuffo <giuliocamuffo@gmail.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* zoom: Remove unneeded usage of wl_fixed_ts in favour of doublesGiulio Camuffo2015-10-092-16/+14
| | | | | | Signed-off-by: Giulio Camuffo <giuliocamuffo@gmail.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* input-panel: Fix show_input_panel_surface crash when no surface has focusNicolas Guyomard2015-10-071-0/+2
| | | | | | Signed-off-by: Nicolas Guyomard <nicolas.guyomard@open.eurogiciel.org> Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* doc: Correct absolute path in doxygen graphs.Jon Cruz2015-10-072-0/+2
| | | | | | | | | Adds a config item to prevent doxygen from using absolute paths in generated diagrams. This trims off the base directory during config to leave just relative paths. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* cosmetic: Remove a few double semicolonsDerek Foreman2015-10-073-3/+3
| | | | Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
* desktop-shell: NULL check whether a popup parent is a shell surfaceJonas Ådahl2015-10-071-2/+3
| | | | | | | | | | | | get_shell_surface(parent) may return NULL if the client passed a unassigned wl_surface or a wl_surface with a non-shell surface role (such as cursor role). https://bugs.freedesktop.org/show_bug.cgi?id=92316 Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Tested-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
* weston-input: Reformat weston_log line to add missing space between wordsChris Michael2015-10-071-1/+1
| | | | | Signed-off-by: Chris Michael <cp.michael@samsung.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>