10:29 ahmadraniri[m]: Hello, is there a way to exclude something from what wl_container_of contains ?
10:29 kennylevinsen: ahmadraniri[m]: I don't understand the question. What are you trying to achieve?
10:31 kchibisov: emersion: do you happen to know how common the w3c names are in arbitrary cursor themes? I remember that some of them use weird naming for `pointer`, like `hand2` and `hand1`(you check for both for example).
10:31 kennylevinsen: wl_container_of calculates the pointer to a struct, based on the pointer to a field in that struct (usually a field that is a wl_listener). It's just a substraction using the offset of the struct field.
10:33 kchibisov: I wonder whether I should keep maintaining fallback lists I have or I could simply pass the w3c name to the cursor theme loader, when the protocol is not available.
10:34 ahmadraniri[m]: kennylevinsen: So, I have a list of windows that I keep using wl_container_of function and I want to make some windows to not included to the list.
10:35 ifreund: so remove them from the list? wl_list_remove()
10:36 ahmadraniri[m]: ifreund: Thanks for the clue, I'll check it.
10:41 kennylevinsen: that, or skip the windows using e.g. a bool when iterating or looking up windows. wl_container_of is not the right place.
11:37 DodoGTA: I personally think https://gitlab.freedesktop.org/wayland/wayland/-/issues/159 could actually be a vulnerability in some cases
11:41 kennylevinsen: DodoGTA: that really depends on your definition of a vulnerability, especially considering that it is currently only known to be caused by the compositor - a privileged and trusted process - as a result of user input
11:43 kennylevinsen: clean termination is not itself a security issue, but it can become a DoS if external/untrusted applications can perform them
17:49 emersion: kchibisov: there are the legacy X11 names, yes. like "default" == "left_ptr"
17:50 emersion: the themes i've looked at have both
17:50 emersion: kchibisov: this document uses the W3C names https://www.freedesktop.org/wiki/Specifications/cursor-spec/
17:50 kchibisov: Oh, nice.
17:51 kchibisov: Then I guess I'll stick to cursor-spec.
17:51 emersion: also relevant https://gitlab.freedesktop.org/xdg/xdg-specs/-/issues/94
17:52 emersion: but xdg-spec is a ghost so
18:02 clem_: #radeon being flooded again ;c
18:05 emersion: it doesn't sound like spam this time