00:19i509vcb: Is there some intended way to limit the number of objects a client could create?
00:28danieldg: I would assume that a simple count would be one part of a resource-counting system that would eventually result in a fatal error on exhaustion (because there's no protocol for nicely informing the client of this, to my knowledge). That feels very compositor-specific.
00:29i509vcb: Well if the client creates too many objects I could always just kill it
00:29danieldg: right
00:29danieldg: I don't think you have any other choices
02:10wlb: weston Issue #892 opened by Zhongmin Wu (vwzm228) Find some issues about VNC backend + gl renderer, hope helpful for weston maintainers to fix them https://gitlab.freedesktop.org/wayland/weston/-/issues/892
09:38wlb: wayland-protocols/main: Simon Ser * tablet-v2: clarify that name/id events are optional https://gitlab.freedesktop.org/wayland/wayland-protocols/commit/0819d97313b3 unstable/tablet/tablet-unstable-v2.xml
09:38wlb: wayland-protocols Issue #180 closed \o/ (tablet-v2: clarify whether zwp_tablet_v2.id is required https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/180)
09:38wlb: wayland-protocols Merge request !286 merged \o/ (tablet-v2: clarify that name/id events are optional https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/286)
12:49wlb: wayland-protocols/main: Carlos Garnacho * staging/dialog: Add "dialog" protocol https://gitlab.freedesktop.org/wayland/wayland-protocols/commit/9408483fb19e staging/xdg-dialog/README staging/xdg-dialog/xdg-dialog-v1.xml meson.build
12:49wlb: wayland-protocols Merge request !228 merged \o/ (staging/dialog: Add "dialog" protocol https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/228)
13:22wlb: weston Merge request !1478 opened by Pekka Paalanen (pq) color-lcms: print profile id instead of pointer https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1478 [color-lcms plugin], [Colour management]
15:45haasn: is there a wayland clipboard manager that supports images / non-text?
15:45haasn: by "clipboard manager" I mean something that will keep my clipboards synchronized
15:45haasn: I currently use `wl-paste -pw wl-copy` but it has two issues: 1. supports text only, and 2. only synchronizes in one direction, I want both
15:46kennylevinsen: haasn: for the first part, `man 1 wl-clipboard`, look for --type.
15:48pq: cli tools to access the clipboard are kind of not supposed to work to begin with...
15:51haasn: kennylevinsen: that only works if I want to force a specific type, no? but I want to sometimes copy text and at other times copy images
15:52psykose: the issue is that when you copy 'an image' in firefox, it might advertise a lot of types
15:53kennylevinsen: haasn: you're not forcing a type, you're specifying which of the numerous offered types to pick
15:53psykose: so you would copy a bunch of the same image in different formats if it just pulled them all
15:54kennylevinsen: there are dedicated clipboard management tools (wlroots at least has a protocol for that), but I'm not personally familiar with them.
15:55haasn: well, it seems that `wl-paste -t image -pw wl-copy` doesn't break when copying text
15:55haasn: so I guess I can use that to work around the most common case of this issue
15:55haasn: although it will probably still break on files and the like
15:57emersion: pq, (1) there are OSC extensions for clipboard access (2) this is a clipboard manager use-case
15:58pq: OSC? like a terminal emulator? then you have a window, so that's fine.
15:58emersion: CLI tools can access the clipboard via escape sequences
15:58emersion: the terminal emulator then relays this to Wayland/X11
15:59pq: but you need a terminal window to actually relay those, right?
15:59emersion: sure
15:59haasn: fwiw I am copying from one GUI app to another GUI app
15:59emersion: it's good for CLI text editors for instance
15:59pq: so, there is a window associated to it, which makes it fine
15:59emersion: but for background CLI tools, it's a clipboard manager use-case, so it's only natural that it uses something else (privileged protocol)
16:00pq: privileged protocol is fine, I didn't realise they used that
16:00emersion: wl-clipboard does that, yeah
16:00emersion: it only uses hacks on GNOME
16:00pq: wl-paste and wl-copy though?
16:00emersion: part of wl-clipboard
16:01pq: oh, ok
16:01davidre: plasma also uses wlr-data-control
16:01davidre: and supports images just fine which was the originial quesiton
16:01davidre: s/quesiton/question/
16:02emersion: s/GNOME/GNOME and Weston/, i suppose
16:03pq: yeah, Weston has... not really a solution for authenticating clients
16:08haasn: wait, primary selection and the regular clipboard are implemented with completely different protocols?
16:11haasn: yeah seems it's via wl_data_device and zwp_primary_selection_device_v1
16:12haasn: and then there's also wlr-data-control..
16:12haasn: and gkt-primary-selection ?
16:12haasn: why so many different clipboard protocols?
16:12davidre: wlr-data-control is for clipboard manager s
16:12haasn: and how can I get rid of them all and have just a single clipboard?
16:13davidre: gtk- is non standard and was standardized into primary-selection (please correct me if I am wrong)
16:13davidre: wl_data_device handles the clipboard
16:14davidre: and primary_selection the primary_selection
16:14haasn: darn
16:14davidre: the thing you get when selecting text and pasting by middle click usually
16:14haasn: that really stymies my plan, I was hoping it would be a simple hack patch to redirect the primary selection to the clipboard (or vice versa)
16:14haasn: but if they're completely different protocols internally that plan is gone
16:15davidre: If you are the clipboard manager you can do that
16:15davidre: * do that with wlr-data-control quite staightfoward
16:15davidre: And if you want to synchronize both for your app, set them to be the same it's also not that hard
16:16davidre: depending on which level you are operating, toolkit, wrapper, raw generated code
16:17haasn: I am the end user who is suffering from this design, coming from X where things just worked (tm)
16:18emersion: it's unfortunate that primary-selection needs to be a completely separate protocol
16:18emersion: it would've been nicer to update the core protocol to be more modular
16:30davidre: on plasma you can just enable synchronize clipboard and primary selection :)
16:30haasn: good for plasma users :/
16:31haasn: maybe the plasma clipboard manager can be ripped out and ran stand-alone
16:31haasn: but probably not as I imagine it is part of the compositor itself
16:31davidre: It is not
16:32davidre: it uses wlr-data-control but it's part of the shell somehwat and cannot run standalone
16:36emersion: it would indeed be nice to have a good standalone clipboard manager
16:37emersion: i've seen too many that just hack together CLI tools
16:37psykose: personally i disabled primary so that is synced enough :P
16:47haasn: people seem to be recommending copyq
16:48haasn: I'll give it a spin
20:35nmeum: hi! I am a bit confused regarding the distinction between xdg-output-unstable-v1, wlr-output-management-unstable-v1 and wl_output. I would just like to be notified when a new output/monitor is hotplugged, what do I best use for this purpose?
20:40vyivel: nmeum: checking for new wl_output globals would probably be the best option
20:42nmeum: so everytime a new monitor is hotplugged a global event on the wl_registery is emitted for the wl_output interface?
20:42vyivel: yep
20:44nmeum: hm, somehow I only see a global event for the monitors on startup but maybe that's just a bug in my code
22:16danieldg: nmeum: you can run with WAYLAND_DEBUG=1 to see when you get the events