aboutsummaryrefslogtreecommitdiffstats
path: root/shared
AgeCommit message (Collapse)AuthorFilesLines
2022-09-23process-util: Move Xwayland fork helpers to sharedMarius Vlad2-0/+364
We'll want to reuse these inside desktop-shell as well as the Weston frontend. (Based on the work from https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/954) Bug-AGL: SPEC-4510 Signed-off-by: Daniel Stone <daniel.stone@collabora.com> Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ife13dce545928cf53e4f49a657b756ed88ee742f
2022-09-22shared: add str_printf()Marius Vlad1-0/+26
asprintf() has the problem that it leaves *strp undefined when it fails. Here is a simple wrapper that ensures NULL if asprintf() fails, which is much more convenient to use. This will be useful in future patches, where one needs to return error messages from maybe failing functions, and more. Bug-AGL: SPEC-4510 Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I2e689551797da525d110a51b02fd608c9e07c567
2022-09-22shared: introduce os_fd_clear_cloexec()Marius Vlad2-0/+18
This function will be used between fork() and exec() to remove the close-on-exec flag. The first user will be compositor/xwayland.c. Bug-AGL: SPEC-4510 Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com> Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ib2245394654651583f9d59785540962ae4cb8a28
2020-09-30client/screenshooter: Client for taking screenshotsMarius Vlad4-0/+270
The client allows to take screenshots of all outputs, a specific output (making use of xdg_output_manager interface) or just listing outputs. Bug-AGL: SPEC-3580 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Idd60d4892adf4c2ea493477421b6e5623e0ca1f0
2020-03-04meson.build: Upgrade build and headers to libweston7Marius Vlad2-2/+2
Bug-AGL: SPEC-3180 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ifa74b658307ee40d789f90882d210ea2d65c2898
2020-01-30shared: Add some regular helpersMarius Vlad1-0/+141
Imported from weston, useful when will be adding systemd-notify, and potentially other bits. Adds MIN/MAX/container_of. Bug-AGL: SPEC-3119 Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: I2cb53784943ab3c5bdbc447611f30036f7c64e21
2019-11-25Import source, backport to libweston 6.0icefish_8.99.5icefish_8.99.4icefish_8.99.3icefish_8.99.2icefish/8.99.5icefish/8.99.4icefish/8.99.3icefish/8.99.28.99.58.99.48.99.38.99.2Daniel Stone4-0/+750
Signed-off-by: Daniel Stone <daniels@collabora.com> Change-Id: I7705fa82dab29a27e4913cd548a2f5c3247dc5ad