Re: How to implement OSD overlay in Wayland/Weston

2019-11-21 Thread Greg V
Nov 19, 2019 3:39:48 PM Simon Ser : > On Tuesday, November 19, 2019 1:37 PM, Pekka Paalanen wrote: > > >> On Tue, 19 Nov 2019 12:19:35 + >> Simon Ser cont...@emersion.fr wrote: >> >> >>> On Tuesday, November 19, 2019 1:08 PM, Pekka Paalanen ppaala...@gmail.com >>> wrote: >>> >>>

[PATCH] xwayland/selection: do not remove NULL property_source

2018-04-10 Thread Greg V
Happened mostly with neovim's xclip usage. --- This fixes the most frequent source of crashes for me. xwayland/selection.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xwayland/selection.c b/xwayland/selection.c index f145089f..b0bccc0d 100644 --- a/xwayland/selection.c

Re: [PATCH weston] libweston/compositor-drm: Reset repaint scheduled status when setting DPMS level to off

2018-03-23 Thread Greg V
On 7 March 2018 at 17:36, Marius Vlad > wrote: / /Otherwise when setting dpms level DPMS_ON, weston_output_schedule_repaint() //will bail out early and never get a chance to wake up the output. Arguably this could also be done in

[PATCH] compositor-drm: handle null cursor_plane

2018-02-19 Thread Greg V
Was crashing when I tried to take a screenshot. --- On my slightly unconventional setup (FreeBSD amdgpu), after merging recent changes, pressing the screenshot hotkey was crashing weston. Debugging revealed that cursor_plane was 0x0 here. I don't know why exactly, but adding this check fixes it.

[PATCH weston 7/8] Add ifdefs for platform-specific clocks

2017-12-17 Thread Greg V
+ add FreeBSD/DragonFlyBSD _FAST clocks, similar to Linux _COARSE --- clients/weston-info.c | 6 ++ compositor/main.c | 5 + libweston/compositor.c | 8 3 files changed, 19 insertions(+) diff --git a/clients/weston-info.c b/clients/weston-info.c index 386bd412..e4fa9555

[PATCH weston 5/8] Use getprogname as fallback for program_invocation_short_name

2017-12-17 Thread Greg V
--- configure.ac | 21 + 1 file changed, 21 insertions(+) diff --git a/configure.ac b/configure.ac index 253f7e73..c800d1aa 100644 --- a/configure.ac +++ b/configure.ac @@ -107,6 +107,27 @@ AC_CHECK_HEADERS([execinfo.h linux/memfd.h]) AC_CHECK_FUNCS([mkostemp strchrnul

[PATCH weston 4/8] xwayland: only use abstract sockets on Linux

2017-12-17 Thread Greg V
--- xwayland/launcher.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/xwayland/launcher.c b/xwayland/launcher.c index 0ecdb205..91d976ec 100644 --- a/xwayland/launcher.c +++ b/xwayland/launcher.c @@ -72,6 +72,10 @@ weston_xserver_shutdown(struct weston_xserver *wxs)

[PATCH weston 2/8] Use $(SED) to make sure GNU sed is used

2017-12-17 Thread Greg V
FreeBSD's default sed is not compatible with this expression. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 7adc6254..919c7c78 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1609,7 +1609,7 @@ $(if $(findstring

[PATCH weston 3/8] gl-renderer: only use sync-file on Linux

2017-12-17 Thread Greg V
If no sync_file header was found, only assume this functionality exists when on Linux. --- libweston/gl-renderer.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libweston/gl-renderer.c b/libweston/gl-renderer.c index abf556f0..62e95c3f 100644 ---

[PATCH weston 6/8] compositor: get PATH_MAX on non-Linux systems from param.h

2017-12-17 Thread Greg V
--- compositor/main.c | 4 1 file changed, 4 insertions(+) diff --git a/compositor/main.c b/compositor/main.c index 32fb33e8..dedb5e64 100644 --- a/compositor/main.c +++ b/compositor/main.c @@ -41,7 +41,11 @@ #include #include #include +#ifdef __linux__ #include +#else +#include

[PATCH weston 8/8] Fix various includes for portability

2017-12-17 Thread Greg V
--- libweston/input.c | 2 +- libweston/pixel-formats.c | 4 tests/ivi_layout-test-plugin.c | 1 + tests/weston-test.c| 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libweston/input.c b/libweston/input.c index 94a3423a..a102732c 100644 ---

[PATCH weston 1/8] Use anonymous shared memory for tempfiles

2017-12-17 Thread Greg V
SHM_ANON on FreeBSD, memfd on recent Linux. - avoids usage of posix_fallocate on Copy-on-Write filesystems like ZFS when XDG_RUNTIME_DIR is something like ~/.tmp instead of a tmpfs (FreeBSD 12 does not even allow it on ZFS anymore) - avoids touching the filesystem, which increases sandboxing

[PATCH weston 0/8] Portability patches

2017-12-17 Thread Greg V
These patches improve compatibility with non-Linux operating systems such as FreeBSD. Greg V (8): Use anonymous shared memory for tempfiles Use $(SED) to make sure GNU sed is used gl-renderer: only use sync-file on Linux xwayland: only use abstract sockets on Linux Use getprogname

Re: Weston stuff: fractional HiDPI, FreeBSD, Rust

2017-12-14 Thread Greg V
On Thu, 2017-12-14 at 10:21 +0200, Pekka Paalanen wrote: > On Thu, 14 Dec 2017 03:05:59 +0300 > Greg V <greg@unrelenting.technology> wrote: > > - FreeBSD support > In theory I'd support this, but I'm sure we'll have some bikeshedding > on how to actually deal with the a

Weston stuff: fractional HiDPI, FreeBSD, Rust

2017-12-13 Thread Greg V
Hi everyone! I've been hacking around, trying to make Weston more usable for myself… So far I've done: - FreeBSD support: https://github.com/myfreeweb/weston/commit/5827840c8 2b9d0a302d5c54c514ca6f4238e12de - memfd/anonymous shm in os_create_anonymous_file: https://github.com/m

Re: [PATCH libinput] FreeBSD portability fixes

2017-12-01 Thread Greg V
On 12/01/2017 03:10, Peter Hutterer wrote: is there a freebsd image on the docker registry that's reliable? adding this to circleci seems like the only way to make sure it keeps building. CircleCI doesn't allow nested KVM so I guess you can only run slow software emulation in qemu… But you

[PATCH v2 libinput] FreeBSD portability fixes

2017-12-01 Thread Greg V
--- .gitignore| 1 + include/linux/input.h | 4 meson.build | 39 ++- src/libinput-util.h | 4 test/litest.c | 9 - test/litest.h | 8 test/test-pointer.c | 2 ++ 7 files changed, 61

[PATCH libinput] FreeBSD portability fixes

2017-11-29 Thread Greg V
- some items in meson were missing a dependency on udev - libdl does not exist on FreeBSD, dlopen is in libc - no linux/types.h on FreeBSD - stdarg.h included when variadic functions are used - and other fixes --- include/linux/input.h | 11 +++ meson.build | 9