- Jun 24, 2019
-
- Jun 19, 2019
-
-
We loaded the use-pixman configuration value from both the command line and the configuration file, but completely ignored the former. Make sure we actually use both. Tested with all permutations of config/command line. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Tested-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> (cherry picked from commit 8a4585c2)
-
We were testing the wrong variable to see if output creation had failed: instead of testing the return of the function we'd just called, we were testing something we'd already checked earlier. Signed-off-by: Daniel Stone <daniels@collabora.com> (cherry picked from commit 81433582)
-
WESTON_OPTION_BOOLEAN takes a pointer to an int as an argument, but there were several cases of being passed a pointer to a bool instead. This changes it to use a local int instead, and then write that value to the bool. Signed-off-by: Scott Anderson <scott.anderson@collabora.com> (cherry picked from commit 2edbcbd9)
-
The printf() format specifier "%m" is a glibc extension to print the string returned by strerror(errno). While supported by other libraries (e.g. uClibc and musl), it is not widely portable. In Weston code the format string is often passed to a logging function that calls other syscalls before the conversion of "%m" takes place. If one of such syscall modifies the value in errno, the conversion of "%m" will incorrectly report the error string corresponding to the new value of errno. Remove all the occurrences of the specifier "%m" in Weston code by using directly the string returned by strerror(errno). While there, fix some minor indentation issue. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> (cherry picked from commit 39578636)
-
weston includes input-event-codes.h since version 5.0.91 and https://github.com/wayland-project/weston/commit/6e229ca26381bc8191fd9af1e439c311da709aff input-event-codes.h is available only since kernel 4.4 and https://github.com/torvalds/linux/commit/f902dd893427eade90f7eaf858e5ff8b150a5a12 To fix this build failure, replace include on linux/input-event-codes.h by linux/input.h Fixes: - http://autobuild.buildroot.org/results/210c2759900f15ea0030d088f6f45cd8bb199b29 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> (cherry picked from commit 137b811e)
-
Added check to log the error if wl_display_create return NULL. Fixes: #101 Signed-off-by: Silva Alejandro Ismael <silva.alejandro.ismael@gmail.com> (cherry picked from commit 21a1f407)
-
In the simple examples in which keymap is not handled, the open descriptor has to be properly closed. After each suspend/resume sequence the keymap is send again to every client. On client weston-simple-egl the leak causes a segfault when no more file descriptors can be opened. Close the file descriptor and lazily copy/paste the comment already available in simple-dmabuf-v4l. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> (cherry picked from commit 4071225c)
-
Set up handlers for wl_data_source v3 events Signed-off-by: Sebastian Wick <sebastian@sebastianwick.net> (cherry picked from commit 1bdf3632)
-
As per the wl_data_offer::finish documentation, the request is only valid for drag n drop operations and signifies that a dnd is completed. Send finish request only when we have a dnd operation active. Signed-off-by: Harish Krupo <harishkrupo@gmail.com> (cherry picked from commit 43152a3a)
-
The documentation of wl_data_offer::finish states that it should be used to signify that a drag and drop operation is completed. So send WL_DATA_OFFER_ERROR_INVALID_FINISH when the client calls the finish request but the operation isn't dnd. Signed-off-by: Harish Krupo <harishkrupo@gmail.com> (cherry picked from commit 737ac0d4)
-
The toytoolkit assumes that wl_seats are advertised after wl_data_device_manager and creates a data_device during wl_seat registry binding. This patch removes this assumption by creating data_devices for all the wl_seats created up until then. Fixes: #201 Signed-off-by: Harish Krupo <harishkrupo@gmail.com> (cherry picked from commit ee4c7a24)
-
In file included from ../clients/multi-resource.c:38: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] #warning redirecting incorrect #include <sys/poll.h> to <poll.h> ^~~~~~~ (cherry picked from commit 923a1e96)
-
Fix variable EGL_NO_IMAGE to EGL_NO_IMAGE_KHR in clients/simple-dmabuf-egl.c Signed-off-by: Kamal Pandey <pandeykamal13526@gmail.com> (cherry picked from commit 53d7c243)
-
If buttons list isn't empty and title is NULL, SEGV is occured in pango_layout_set_text(). This patch fixes this problem. Signed-off-by: Tomohito Esaki <etom@igel.co.jp> (cherry picked from commit 6f9db6c4)
-
Signed-off-by: Marius Vlad <marius.vlad@collabora.com> (cherry picked from commit 253ba9a6)
-
With the addition of patch 433f4e77 we display the same view id (0) for every view as we're modifying the local variable. Displaying sub-surfaces based views is also problematic. The caller need to modify the view number as well, so we instead we pass the address as to allow that to happen. Otherwise we end up repeating the same number for views without sub-subrfaces once those have been printed. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> (cherry picked from commit a6acfa83)
-
gbm_bo_get_handle_for_plane returns handle.s32 == -1 on error, at least for the Mesa dri implementation. Reported-by: Marius Vlad <marius.vlad@collabora.com> Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> (cherry picked from commit ff98a908)
-
- Jun 18, 2019
-
-
These protocols are from libweston, not weston. Even the pkg-config files is called libweston-6-protocols.pc. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> (cherry picked from commit 4ab901eb)
-
Identical to 8a8558dd, where we need to pass `-Wl` as linker args. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> (cherry picked from commit 3a28bd66)
-
We claim to support meson versions >= 0.47 but the `install:` argument in configure_file was introduced in version 0.50. This produces the following meson warning: WARNING: Project specifies a minimum meson_version '>= 0.47' but uses features which were added in newer versions: * 0.50.0: {'install arg in configure_file'} From the documentation for the install argument [1]: " When omitted it (install) defaults to true when install_dir is set and not empty, false otherwise." So, remove the `install:` argument and just depend on `install_dir` for installing. Fixes: #225 [1] https://mesonbuild.com/Reference-manual.html#configure_file Signed-off-by: Harish Krupo <harish.krupo.kps@intel.com> (cherry picked from commit b81fc517)
-
All other backends already link to libweston, x11 backend should too. This fixes a build failure: [1/50] Compiling C object 'libweston/2b98b6d@@x11-backend@sha/compositor-x11.c.o'. FAILED: libweston/2b98b6d@@x11-backend@sha/compositor-x11.c.o cc -Ilibweston/2b98b6d@@x11-backend@sha -Ilibweston -I../../git/weston/libweston -Ilibweston/.. -I../../git/weston/libweston/.. -Ilibweston/../shared -I../../git/weston/libweston/../shared -Iprotocol -I/home/pq/local/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu99 -g -Wno-unused-parameter -Wno-shift-negative-value -Wno-missing-field-initializers -fvisibility=hidden -fPIC -MD -MQ 'libweston/2b98b6d@@x11-backend@sha/compositor-x11.c.o' -MF 'libweston/2b98b6d@@x11-backend@sha/compositor-x11.c.o.d' -o 'libweston/2b98b6d@@x11-backend@sha/compositor-x11.c.o' -c ../../git/weston/libweston/compositor-x11.c ../../git/weston/libweston/compositor-x11.c:51:10: fatal error: xkbcommon/xkbcommon.h: No such file or directory #include <xkbcommon/xkbcommon.h> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> (cherry picked from commit 651566af)
-
This fixes: [ 5s] cc -Ilibweston/2b98b6d@@session-helper@sta -Ilibweston -I../libweston -Ilibweston/.. -I../libweston/.. -Ilibwes ton/../shared -I../libweston/../shared -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/dbus-1.0 -I/usr/lib6 4/dbus-1.0/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu99 -Wno-unused-parameter -Wno-shift-n egative-value -Wno-missing-field-initializers -fvisibility=hidden -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -fPIC -MD -MQ 'libweston/2b98b6d@@session-hel per@sta/launcher-util.c.o' -MF 'libweston/2b98b6d@@session-helper@sta/launcher-util.c.o.d' -o 'libweston/2b98b6d@@sessio n-helper@sta/launcher-util.c.o' -c ../libweston/launcher-util.c [ 5s] In file included from ../libweston/launcher-util.c:29: [ 5s] ../libweston/compositor.h:39:10: fatal error: xkbcommon/xkbcommon.h: No such file or directory [ 5s] #include <xkbcommon/xkbcommon.h> For completeness, also add the same for wayland-server.h. Reported-by: Jan Engelhardt <jengelh@inai.de> Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> (cherry picked from commit 779db046)
-
All the GBM code is unconditional in compositor-drm.c, so while disabling the GL-renderer would stop GBM from being used, GBM headers would still be needed for building and GBM library for linking. Leave a note to fix it properly later. At least we now check for GBM and do not mislead with the error message. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> (cherry picked from commit fe6dd7bc)
-
remoting-plugin.c calls things like g_error_free() and g_object_set(), so it needs to link glib-2.0 and gobject-2.0 explicitly, instead of relying on GStreamer pkg-config bringing them in. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> (cherry picked from commit 292aaf93)
-
cms-colord.c calls things like g_string_free() and g_object_unref(), so it needs to link glib-2.0 and gobject-2.0 explicitly, instead of relying on colord pkg-config bringing them in. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> (cherry picked from commit 191c453f)
-
editor.c calls g_clear_object(), so it should link to gobject directly instead of relying on pangocairo pulling it in in its pkg-config. Fixes: #211 Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> (cherry picked from commit cbffca98)
-
- Mar 28, 2019
-
-
Derek Foreman authored
-
- Mar 27, 2019
-
-
Marius Vlad authored
This was introduced with a95bb6f7 (clients: Support explicit synchronization) Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
-
- Mar 21, 2019
-
-
Derek Foreman authored
-
- Mar 19, 2019
-
-
Stefan Agner authored
When building screen-share module with meson loading the module fails with: [00:01:28.604] Failed to load module: /usr/local/lib/weston/screen-share.so: undefined symbol: os_create_anonymous_file Failed to process Wayland connection: Broken pipe failed to create display: Broken pipe The function os_create_anonymous_file is defined in libshared, adding libshared to the dependency makes sure the function gets compiled into screen-share.so. Fixes: wayland/weston#208 Signed-off-by: Stefan Agner <stefan@agner.ch>
-
- Mar 14, 2019
-
-
Derek Foreman authored
-
- Mar 06, 2019
-
-
Philipp Zabel authored
Since commit ee1d968e ("compositor-drm: Fall back if GBM surface fails with modifiers"), drm_output_init_egl requires output->gbm_surface to be NULL, or gbm_surface_create will not be called if HAVE_GBM_MODIFIERS is enabled but no modifiers are supported by the plane. This could happen if _init_egl is called after drm_ouptut_fini_egl drom drm_output_switch_mode. Add an assert to guarantee the requirement and clears the gbm_surface pointer after the surface is destroyed. Signed-off-by: Philipp Zabel <p.pzabel@pengutronix.de>
-
- Mar 05, 2019
-
-
It is all hooked up in clients/meson.build, just the option to enable it was missing. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
-
Derek Foreman authored
-
Alexandros Frantzis authored
Since we are managing and rendering to buffers on our own with GBM, create the EGL display using the GBM platform with the DRM render node, instead of using the Wayland EGL platform. Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
-
- Feb 25, 2019
-
-
gbm_bo_get_handle_for_plane returns -1 on error, not 0. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
-
- Feb 22, 2019
-
-
The 'created new mode blob' print was missing a newline, unlike all the others. Signed-off-by: Daniel Stone <daniels@collabora.com>
-
- Feb 20, 2019
-
-
Link Mauve authored
-