ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput
nerdopolis has joined #wayland
mxz_ has quit [Ping timeout: 480 seconds]
garnacho has quit [Ping timeout: 480 seconds]
mxz_ has joined #wayland
mxz has quit [Ping timeout: 480 seconds]
mxz_ is now known as mxz
mxz_ has joined #wayland
ity has quit [Quit: WeeChat 4.4.4]
Brainium has quit [Quit: Konversation terminated!]
ity has joined #wayland
kts has joined #wayland
glennk has quit [Ping timeout: 480 seconds]
glennk has joined #wayland
esotericwarfare has joined #wayland
<esotericwarfare>
hi all
<esotericwarfare>
hi all
<esotericwarfare>
I cannot play videos with mpv in tinywl wayland
<esotericwarfare>
[vo/wlshm/wayland] Compositor doesn't support the required wp_viewporter protocol!
<esotericwarfare>
[vo/dmabuf-wayland/wayland] Compositor doesn't support the required wp_viewporter protocol!
<esotericwarfare>
is there any way to fix this?
<Ermine>
not a bug, use actual compositor, not the educative material
<Ermine>
tinywl can't do a lot of things because it enables only a few protocols
<karenw>
wp_viewporter is pretty basic, if your compositor doesn't have it at all, it's really minimalist and not suitable for general use.
<Ermine>
but the purpose of tinywl is to show how to use wlroots library, not to be a full-fledged wayland compositor
<Ermine>
(you can notice btw that you can't switch out of tinywl by using e.g. ctrl-alt-f3 if you run it on a tty)
<esotericwarfare>
yes I notice that
<Ermine>
But if you're looking for an excercise on compositor development, wp_viewporter protocol is enabled by one line of code in wlroots, try to figure out which one
<Ermine>
and, since we're on #wayland and not #wlroots, there are also Weston, Kwin (part of Plasma), Mutter (part of GNOME) and whatever Cosmic uses
kts has quit [Ping timeout: 480 seconds]
<esotericwarfare>
I used dwm for a long time then I got tired and only use the framebuffer (I can watch videos with mpv --vo=drm) and run QT apps like falkon and qutebrowser. But now I wanna try wayland lol: dwl is wayland version of dwm, but I'm tired of tiling window manager LOL
<esotericwarfare>
from the framebuffer I can run games like 0ad, gzdoom, I think diablo too
<esotericwarfare>
or maybe its not framebuffer I don't know, from the tty
<zzag>
speaking for kwin, we would like to know the title bar rect in order to confine a window during interactive move better, e.g. to avoid placing the title behind a panel. regarding window shade, I think more is needed in order to support it properly (e.g. a shade request in xdg_toplevel), but then again, speaking for kwin, we're considering dropping support for it
<soreau>
zzag: AFAIU, you already can get the shadow margins for CSD toplevels, so you should be able to use this to avoid placing it somewhere undesired (like a panel)
<zzag>
it's not enough. we also need to know the height of the headerbar
<zzag>
... or the width of the headerbar depending on its orientation
<soreau>
I don't really see why..
<soreau>
if you know the shadow margins, you can just use these values to compute where to put it (or not)
<soreau>
because you know where the input region/rect is, within the buffer (which is larger by the size of the margins)
<zzag>
soreau: the confinement algorithm in kwin attempts to keep the titlebar in the workarea. there must be visible at least some part of the titlebar so the user can still initiate an interactive move, etc
<soreau>
zzag: yes, I understand this - perfectly reasonable
<zzag>
if the shadow margins work for you in wayfire, great, but in kwin, we need to know the titlebar rect to keep the confinement algorithm working the same way as for ssd windows
<soreau>
ah, ssd...
<soreau>
now that sounds like you're trying to involve personal problems ;)
<soreau>
if you want it to work the same, you need to adjust whatever algorithms to be conditional for ssd/csd most likely
<zzag>
well what I'm trying to say is that if somebody proposes a set_title_rect request, kwin would be on board :)
<soreau>
meh..
<soreau>
it's a problem solvable in kwin ssd impl
<soreau>
or the assumptions thereof
<zzag>
soreau: there are no issues with server side decorations, we need to know the titlebar rect when a client uses client side decorations
<soreau>
maybe this would mean huge changes because it still supports x11 or something?
<soreau>
zzag: my argument is that you simply do not
<soreau>
except for stuff like shade effect, which is quite niche
<zzag>
soreau: no, we need it and we would support adding such a hint
<soreau>
zzag: you get the buffer geometry, and the input rect/region extents and compare these two to get l/t/r/b margins and work from there
<soreau>
this can especially work for ssd since you know everything, including titlebar height
<soreau>
bg is the buffer geometry and vg is the view geometry
<zzag>
soreau: as I said it already, we need to know the headerbar height in order to keep certain amount of pixels vertically in the work area when the user tries to push the window down
<soreau>
zzag: you mean during a titlebar move drag?
<zzag>
yes, during interactive move, i.e. after calling xdg_toplevel.move, etc
<soreau>
you could use some sort of clamping to achieve this AFAIU
<soreau>
but anyway, if you can write some MR/issue with enough information to get others on board, maybe it will make more sense :)
<soreau>
don't get me wrong, I'm all for more information about CSD to the compositor like titlebar height, I just don't think kwin needs this infomration for the purpose you describe
<soreau>
zzag: if you get a wild hair, maybe shoot a video of the problem that you want to solve
<soreau>
aside from getting a call into xdg protocol, the other half of the battle is getting clients to actually use the call and set it correctly ;)
<soreau>
would be nice if they called a function on scroll-on-titlebar too, like the menu function expected to be called on titlebar right-click
<Consolatis>
zzag, why not just treat everything outside of shadows as titlebar? do you want users to allow moving a few pixels of the headerbar out of screen as long as $some amount is still onscreen?
mxz__ has joined #wayland
crazybyte has quit [Read error: Connection reset by peer]
crazybyte has joined #wayland
<Consolatis>
having the titlebar rect could be interesting though, some random compositor could theoretically use that information to simply cut it off from the client buffer and replace it with an SSD :)
nerdopolis has quit [Ping timeout: 480 seconds]
mxz_ has quit [Ping timeout: 480 seconds]
mxz has quit [Ping timeout: 480 seconds]
mxz__ is now known as mxz
karenw has quit [Ping timeout: 480 seconds]
narodnik has quit [Ping timeout: 480 seconds]
nerdopolis has joined #wayland
cmichael has joined #wayland
cmichael has quit []
crazybyte has quit [Read error: Connection reset by peer]
crazybyte has joined #wayland
mxz_ has joined #wayland
<zzag>
Consolatis: "why not just treat everything outside of shadows as titlebar" then you won't be able to move the window partially offscreen
pavlushka has joined #wayland
<pavlushka>
any gui image viewer suggestion other than swayimage?
bindu_ has joined #wayland
bindu has quit [Ping timeout: 480 seconds]
yaslam_ has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]