00:08wlb: wayland Issue #432 closed \o/ (Wayland architecture https://gitlab.freedesktop.org/wayland/wayland/-/issues/432)
04:13mizvekov: So if wl_shell is deprecated, and xdg_shell supersedes it, and we even mention this in the description of wl_shell, then why not simply ship it in libwayland?
04:14danieldg: because you need to ship the rest of wayland-protocols anyway
04:16danieldg: I'd say it makes more sense to go the other way: wayland.xml should not be part of libwayland, or maybe it should only contain wl_display (+callback)
04:17danieldg: but it's not useful to change that now
04:23mizvekov: wayland-protocols just includes the xmls but does build any libraries, so it's slightly more inconvenient to use.
04:26soreau: not really
04:26danieldg: if you have a working build system it's not, if you don't you need one anyway
04:27danieldg: because you will eventually want to use viewporter, dmabuf, presentation feedback, and others
04:27mizvekov: well you have to generate the c source from it, and plop it in your build system, instead of just linking to a library. distro folks tend to frown upon this, but I don't mind it too much myself.
04:28danieldg: a good buildsystem is capable of handling xml -> .c -> .o
04:28danieldg: that's like the original goal of Make, though it was .y -> .c
04:29soreau: mizvekov: if you want a wrapper library for most protocols that matter, wlroots does a pretty decent job of this
04:29soreau: then you don't have to worry about how wayland-scanner works :P
04:31mizvekov: sure. but I don't mind using the scanner myself, I would do this for the whole libwayland. But it is slightly more inconvenient when you are just experimenting with things and want python-like convenience.
04:33mizvekov: fwiw, vulkan is in the same boat, and they just ship everything pre-generated from their xmls, which I think is a good model.
04:35danieldg: it's only a model needed because C doesn't have a buildsystem
04:36danieldg: I think some distros frown on shipping generated source artifacts too
04:38mizvekov: Well they tend to prefer shipping things in shared libraries, to both get overall image size down, and to make things more consistent and easier to update.
04:40mizvekov: So what I meant is, they wouldn't ship the pregenerated C source, but just the shared library build from it, and everyone would just link to it.
04:41danieldg: but that doesn't apply
04:41danieldg: the actual wayland protocol is just as much the header
04:42danieldg: there's little point in making a shared library from the protocols alone
04:42danieldg: though I guess you could
08:13kennylevinsen: mizvekov: libwayland is a C implementation of the wire protocol, while wayland-protocols are the language and scanner agnostic protocol definitions. There are other non-C wire protocol implementations and scanners, so shipping pre-built for one of them would be slightly weird.
08:14kennylevinsen: The mistake was how big the core protocol became. It should just have been e.g. display and registry tbh.
09:12JoshuaAshton: kennylevinsen: I agree with that
11:01wlb: weston Merge request !1439 opened by Marius Vlad (mvlad) desktop-shell: Control alpha with keybindings and allow fade animations for other window states https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1439 [Desktop shell]
11:04Company: kennylevinsen: if you went the route of slimming the protocol you run into the problem of not knowing who implements which of all the extensions and can't even properly deduce what you'd need to support in your code
11:05wlb: weston Merge request !1440 opened by Marius Vlad (mvlad) libweston/animation: Remove weston_fade_run unused argument https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1440 [libweston API]
11:05Company: you could potentially solve that with some method where you bundle a bunch of protocols into some kind of "platform", but otherwise this turns into a mess real quick
11:06Company: arguably it has already
11:25kennylevinsen: you already need e.g. xdg_shell - having the abstract wl_surface doesn't help developers much in that regard
11:25kennylevinsen: likewise, I don't think it wp_seat would be confusing compared to wl_seat
11:25Company: yeah
11:26Company: I agree that your idea would have been better
11:26Company: you'd just have run into this issue earlier
11:26kennylevinsen: I also agree that the current landscape can be a bit confusing. Everything optional has its downsides.
11:26Company: because there'd be xdg_dnd and wp_dnd and xdg_clipboard and ext_clipboard_manager and...
11:27Company: there'd probably be separate protocols for each type of input, too
11:29Company: wl_input for keyboard/mouse and then xdg_touch and wp_stylus and ext_joystick and ..
11:29Company: I expect that to hapen anyway, just like it happened with X11 over the years
11:30kennylevinsen: well, tbf it would probably be e.g. a wp_seat, wp_keyboard, wp_touch, ... - with joystick being the likely ext candidate
11:30Company: just that there needs to be a way to keep an overview
11:30kennylevinsen: wayland.app was certainly a helpful addition
11:30Company: both in terms of versions of those protocols and in which protocols are actually widely supported
11:33Company: there also probably needs to be a way to get rid of protocol support
11:33Company: so that things like XInput don't happen
11:33Company: "a way" meaning best practices
11:56YaLTeR[m]: well we did "get rid" of wl_shell
12:02bl4ckb0ne: yes
12:12wlb: weston/main: Marius Vlad * libweston/animation: Remove weston_fade_run unused argument https://gitlab.freedesktop.org/wayland/weston/commit/04d9f7e738ec desktop-shell/shell.c include/libweston/libweston.h libweston/animation.c meson.build
12:12wlb: weston Merge request !1440 merged \o/ (libweston/animation: Remove weston_fade_run unused argument https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1440)
14:02m0squ3ra: Hi guys, is there any bug to start working on?
14:10wlb: weston Issue #864 opened by Sriharsha P V (Sriharsha) Flickering observed after coming out of Unigine heaven https://gitlab.freedesktop.org/wayland/weston/-/issues/864
14:22m0squ3ra_: has someone tried to build weston with a prefix? I've used the same prefix as wayland, but it doesn't find libeston-14.so.0
14:25soreau: you have to set PKG_CONFIG_PATH to point to the directory containing the .pc file of the package you want it to find
14:25soreau: for bugs, you can review the issue reports on gitlab
14:25m0squ3ra_: ty soreau!
14:26soreau: np
14:34daniels: ManMower: I think that #864 is yours ...
14:35ManMower: even bisected to one of my commits.
15:55wlb: wayland Merge request !361 opened by mfk530 (mfk530) server: add funtions to get globals in display https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/361
17:20m0squ3ra_: is there an easy way to stop weston?
17:21zmike: no, its development will continue
17:21bwidawsk: ctrl + alt + back iirc
17:21bwidawsk: lol zmike
17:21m0squ3ra_: xd
17:21m0squ3ra_: ty
18:07m0squ3ra_: is there some wiki containing the concept of damage? (I don't know if it is a weston concept or a wayland concept)
18:09m0squ3ra_: any* excuse my English
18:14kennylevinsen: m0squ3ra_: damage is a graphics concept, referring to parts of the screen or a buffer which has changed and therefore needs to be repainted
18:14m0squ3ra_: ty
18:16kennylevinsen: A Wayland client submits buffers with damage indicating areas that contain new content, which Weston uses to only paint what is needed.
18:18wlb: weston Merge request !1441 opened by Derek Foreman (derekf) libweston: Clip damage to paint node visible region https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1441 [Core compositor]
18:20ManMower: weston has its own concept of damage which is currently violently distinct from the normal graphical concept.
18:37kennylevinsen: Well isn't that great :|
18:38ManMower: well, it's pretty normal except for the bugs
18:39daniels: well, there’s buffer damage (for the shadow GL copies we keep of SHM buffers), which propagates into surface damage, which propagates into plane damage
18:39daniels: they’re all damage, just you have to remember which kind of damage you’re dealing with, and (cough) not screw it up
18:40ManMower: *^_^*
20:28Company: YaLTeR[m]: the shell screenshot code does bad things to me - it seems it runs entirely different codepaths when screenshotting a window vs screenshotting a selected region?
20:28Company: because it seems my selected region is 2x scaled up even though I'm screenshotting on my 1x monitor
20:29Company: window gives me https://i.imgur.com/Efsv5eq.png - selecting gives me https://i.imgur.com/4TLbMga.png
20:29Company: or do I need to ask swick[m] about that?
22:18swick[m]: it does indeed run two different code paths because selecting a window is supposed to create a screenshot of the window without any other windows or shell elements influencing it
22:19swick[m]: report an issue
23:14Company: swick[m]: is that a mutter or shell issue?