ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput
co1umbarius has joined #wayland
columbarius has quit [Ping timeout: 480 seconds]
ybogdano has quit [Ping timeout: 480 seconds]
NepNepdmsalwaysopen[m] has joined #wayland
<NepNepdmsalwaysopen[m]> Hello! I'm working on implementing hyprland_toplevel_export_v1, using handles from zwlr_foreign_toplevel_manager_v1 to indentify toplevels in capture_toplevel_with_wlr_toplevel_handle (part of the first protocol). Since I'm new to wayland development and using zig-wlroots/zig-wayland, there's something I haven't been able to figure out yet: The request data includes a pointer to the server.zwlr.ForeignToplevelHandleV1 of
<NepNepdmsalwaysopen[m]> the toplevel it wants to capture, that handle type is automatically generated by the zig-wayland build system, but the handles stored in the compositor I'm working on (river, though I'm forking it rather than making a PR since as far as I know the maintainer wants to wait for a standard way to do it) are stored as the zig-wlroots version, which isn't automatically generated, what I don't know is how to compare them.
navi has quit [Quit: WeeChat 3.8]
ahartmetz has quit [Quit: Konversation terminated!]
Brainium has quit [Quit: Konversation terminated!]
cool110 has quit [Remote host closed the connection]
cool110 has joined #wayland
nerdopolis has quit [Ping timeout: 480 seconds]
Company has quit [Quit: Leaving]
crazybyte has quit [Ping timeout: 480 seconds]
crazybyte has joined #wayland
tzimmermann has joined #wayland
manuel1985 has joined #wayland
test has joined #wayland
test has quit [Remote host closed the connection]
sima has joined #wayland
floof58 has quit [Ping timeout: 480 seconds]
floof58 has joined #wayland
manuel1985 has quit [Ping timeout: 480 seconds]
manuel1985 has joined #wayland
rv1sr has joined #wayland
bodiccea_ has joined #wayland
rasterman has joined #wayland
iomari892 has joined #wayland
<any1> NepNepdmsalwaysopen[m]: What does hyprland_toplevel_export_v1 do?
<any1> Nm, I found it. :)
<any1> Looks like screencopy for toplevels.
sima has quit [Ping timeout: 480 seconds]
<kennylevinsen> NepNepdmsalwaysopen[m]: a normal use of these would be to attach some data to the handle where it is created, which can then be referenced whenever a call is made using that object
<kennylevinsen> for the wlroots implementation, wlr_foreign_toplevel_handle_v1 has a data pointer you can attach anything to
<kennylevinsen> this can in turn be referenced in the hyprland_toplevel_export_manager_v1.capture_toplevel_with_wlr_toplevel_handle handler
TheKnownSecret has joined #wayland
<pq> emersion, re: VKMS configfs; Yay! \o/
cmichael has joined #wayland
TheKnownSecret has quit [Quit: TheKnownSecret]
crazybyte has quit [Ping timeout: 480 seconds]
crazybyte has joined #wayland
fmuellner has joined #wayland
bodicceaII has joined #wayland
caveman has quit [Remote host closed the connection]
bodiccea_ has quit [Ping timeout: 480 seconds]
caveman has joined #wayland
<wlb> weston Issue #765 opened by binzhai (binzhai) The screenshot function under weston will cause a black screen https://gitlab.freedesktop.org/wayland/weston/-/issues/765
bodiccea_ has joined #wayland
<pq> another set of the same freebsd flake in https://gitlab.freedesktop.org/lpique/wayland/-/pipelines/916409
<emersion> tbh maybe we should just disable this test under freebsd
bodicceaII has quit [Ping timeout: 480 seconds]
<emersion> in general i'm not a big fan of hacks like these
<pq> how would you test them instead?
<emersion> the way you'd do in other languages where such hacks are not possible in the first place
<emersion> e.g. via a function pointer which can be modified by the test
<pq> I don't think I'm familiar with that at all.
<emersion> yes, it may decrease PeRFoRmAnCe a bit :P but who cares
<pq> I'm not worried about performance.
<emersion> i'll try to put up a MR, and you can tell me how you feel about it
<pq> if it is what I'm guessing it is, it mostly depends how you are going to expose those vfuncs for modification
Leopold_ has quit [Remote host closed the connection]
<pq> right, that's the part that I guessed and is fine by me.
<psykose> in what way does that decrease performance
<pq> good question, they are library calls to begin with
<emersion> maybe libc has it static inline in a header or something
<emersion> or maybe libc has clever LTO stuff
Leopold_ has joined #wayland
<pq> if it did, we couldn't override them like we do?
<emersion> hm, that's true…
<emersion> hm, and the LTO is not possible
<emersion> LTO is just inside a single .so
<emersion> so yeah, probably doesn't matter anyways
<emersion> i guess LTO _could_ happen if you statically link libc
<pq> I'm more worried about having two vfuncs for the same thing, one in libwayland-server and one in libwayland-client, and those somehow getting mixed up by e.g. the tests trying to modify them.
<pq> the build of 'test_runner' links curiously many things...
<kennylevinsen> emersion: if you statically link libc I assume you also want to statically link libwayland, and then you get all the LTO
<emersion> pq, wouldn't these share the same wayland-os.o?
<emersion> hm
<pq> oh right, os-helpers are explicitly linked statically, so they can be tested, since none of them are exported
<pq> emersion, it doesn't reduce duplication if the same .o is copied into two .so
<emersion> yea
<pq> but I think it should be just fine - don't export anything
<pq> the test will be testing its own copy of the .o, not going through the .so
<wlb> wayland Merge request !325 opened by Simon Ser (emersion) Draft: tests: manually wrap fcntl() https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/325
<emersion> well, this doesn't work and no idea why
<pq> does moving the init_fallbacks() after the overriding functions matter?
<pq> I've no idea, just wildly guessing
<emersion> nope, same errors
<pq> the messages about test-runner.c:373 and test-runner.c:379 seem totally bogus
<emersion> it's UBSan
<pq> like dynamic linker was trying to load something into a garbage address
<emersion> ah, they also happen on main
<emersion> so they are red herring
bodiccea_ has quit [Read error: No route to host]
<emersion> oh, i just didn't take enough tea this morning
<emersion> init_fallbacks() needs to always wrap all functions
manuel_ has joined #wayland
manuel1985 has quit [Ping timeout: 480 seconds]
ahartmetz has joined #wayland
<wlb> weston Issue #626 closed \o/ (Screen capturing https://gitlab.freedesktop.org/wayland/weston/-/issues/626)
DodoGTA has quit [Ping timeout: 480 seconds]
shoragan has quit [Quit: quit]
shoragan has joined #wayland
jmdaemon has quit [Ping timeout: 480 seconds]
<wlb> weston/main: Daniel Stone * build: Switch join_paths(foo, bar) to foo / bar https://gitlab.freedesktop.org/wayland/weston/commit/386dcd904fda compositor/meson.build data/meson.build doc/sphinx/meson.build libweston/meson.build man/meson.build meson.build
<wlb> weston/main: Daniel Stone * build: Run tests with leak-sanitizer suppressions https://gitlab.freedesktop.org/wayland/weston/commit/249f68adb0da meson.build tests/meson.build
<wlb> weston/main: Daniel Stone * CI: Remove per-test-asan wrapper https://gitlab.freedesktop.org/wayland/weston/commit/68fd41a719ef .gitlab-ci.yml .gitlab-ci/virtme-scripts/run-weston-tests.sh .gitlab-ci/virtme-scripts/per-test-asan.sh
<wlb> weston Merge request !1281 merged \o/ (build: Run tests with leak-sanitizer suppressions https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1281)
<wlb> weston Issue #764 closed \o/ (gl-renderer: Vertex clipping optimizations break rendering of rotated clients https://gitlab.freedesktop.org/wayland/weston/-/issues/764)
<wlb> weston/main: Loïc Molinari * gl-renderer: Make clip_transformed() surf parameter constant https://gitlab.freedesktop.org/wayland/weston/commit/edd5d1cc0912 libweston/ vertex-clipping.c vertex-clipping.h
<wlb> weston Merge request !1283 merged \o/ (gl-renderer: Make clip_transformed() surf parameter constant https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1283)
nerdopolis has joined #wayland
Company has joined #wayland
rederick29 has joined #wayland
nerdopolis has quit [Ping timeout: 480 seconds]
rederick29 has quit [Remote host closed the connection]
rasterman has quit [Quit: Gettin' stinky!]
DodoGTA has joined #wayland
DodoGTA has quit []
DodoGTA has joined #wayland
<emersion> pq, re !325, should i also do the same for other functions?
glennk has quit [Remote host closed the connection]
glennk has joined #wayland
<wlb> weston/main: Philipp Zabel * gl-renderer: clear renderer pointer in gl_renderer_destroy https://gitlab.freedesktop.org/wayland/weston/commit/da683dad577e libweston/renderer-gl/gl-renderer.c
<wlb> weston/main: Philipp Zabel * backend-wayland: fix error path in wayland_backend_create https://gitlab.freedesktop.org/wayland/weston/commit/47180ad25312 libweston/backend-wayland/wayland.c
<wlb> weston Merge request !1279 merged \o/ (backend-wayland: fix error path in wayland_backend_create https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1279)
DodoGTA is now known as Guest4236
DodoGTA has joined #wayland
Guest4236 has quit [Ping timeout: 480 seconds]
<pq> emersion, sure, I was already expecting that you wanted to remove all the dlsym trickery completely :-)
<emersion> for sure :)
kts has joined #wayland
fmuellner has quit []
fmuellner has joined #wayland
kts has quit [Quit: Konversation terminated!]
megatomicdragon[m] has joined #wayland
tzimmermann has quit [Quit: Leaving]
manuel_ has quit [Ping timeout: 480 seconds]
<wlb> weston Merge request !1276 merged \o/ (Add helper for moving views on and off layers https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1276)
andyrtr_ has joined #wayland
andyrtr has quit [Ping timeout: 480 seconds]
andyrtr_ is now known as andyrtr
cmichael has quit [Quit: Leaving]
<wlb> weston Merge request !1284 opened by Derek Foreman (derekf) toy-toolkit: Fix rotations https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1284 [Toytoolkit]
Leopold__ has joined #wayland
Leopold_ has quit [Ping timeout: 480 seconds]
glennk has quit [Remote host closed the connection]
glennk has joined #wayland
rasterman has joined #wayland
fmuellner has quit [Remote host closed the connection]
fmuellner has joined #wayland
fmuellner has quit [Remote host closed the connection]
fmuellner has joined #wayland
fmuellner has quit [Read error: Connection reset by peer]
fmuellner has joined #wayland
fmuellner has quit [Remote host closed the connection]
fmuellner has joined #wayland
fmuellner has quit [Remote host closed the connection]
fmuellner has joined #wayland
fmuellner has quit [Remote host closed the connection]
fmuellner has joined #wayland
fmuellner has quit [Remote host closed the connection]
fmuellner has joined #wayland
fmuellner has quit [Remote host closed the connection]
fmuellner has joined #wayland
fmuellner has quit [Remote host closed the connection]
fmuellner has joined #wayland
fmuellner has quit [Remote host closed the connection]
iomari892 has quit [Ping timeout: 480 seconds]
megatomicdragon[m] has left #wayland [#wayland]
iomari892 has joined #wayland
jmdaemon has joined #wayland
rappet has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
rappet has joined #wayland
ybogdano has joined #wayland
rasterman has quit [Quit: Gettin' stinky!]
nerdopolis has joined #wayland
sunarch has joined #wayland
agd5f_ has quit [Read error: Connection reset by peer]
peeterm_ has joined #wayland
peeterm has quit [Ping timeout: 480 seconds]
peeterm_ is now known as peeterm
cvmn has joined #wayland
caveman has quit [Remote host closed the connection]
iomari891 has joined #wayland
rv1sr has quit []
iomari892 has quit [Ping timeout: 480 seconds]
nerdopolis has quit [Ping timeout: 480 seconds]
Nokurn has joined #wayland
mortif3rum[m] has joined #wayland