ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput
tent4053 has quit [Ping timeout: 480 seconds]
FreeFull has quit [Ping timeout: 480 seconds]
garnacho has joined #wayland
psykose has quit [Remote host closed the connection]
psykose has joined #wayland
karenw_ has joined #wayland
nerdopolis has quit [Read error: Connection reset by peer]
nerdopolis has joined #wayland
nerdopolis has quit [Read error: Connection reset by peer]
<ech0>
hey all! i know next to nothing about wayland, but i'm trying to make a unity app have a transparent background while keeping the contents visible. does anyone have any pointers? unity uses sdl2 on linux
<ech0>
(it does have actual wayland support, it doesnt use xwayland)
dcz_ has joined #wayland
<orowith2os[m]>
are the wl_keyboard leave and enter events supposed to have a nullable surface?
<orowith2os[m]>
I'm confused on how a client behaves with a wl_keyboard object if there's no active surface
<orowith2os[m]>
if I don't have ANY sort of focus, as a client, and I get a key event, do I just... discard it? assume it's a compositor bug?
<orowith2os[m]>
can I use it to pass keys to Wayland clients as a hacky way of doing X11-y key events, just sending them to EVERY client?
<ifreund>
orowith2os[m]: the events don't have a nullable surface argument
<ifreund>
(the wl_surface arg to the callback you give libwayland might be NULL despite the wire protocol not allowing NULL)
<orowith2os[m]>
is it guaranteed to be one though? Is it possible for me to patch a compositor to send key events to everyone, and say that anybody who takes that as a "let's use it for some would-be-active thing" is buggy, and should either ignore it or take it as, a global key event occured and treat it like that instead?
<orowith2os[m]>
real example: could I patch Mutter to pass certain keys to OBS without an active surface, and expect OBS to use those as global keybinds?
Tom^-laptop has joined #wayland
Tom^ has quit [Read error: Connection reset by peer]
kts has joined #wayland
<ifreund>
orowith2os[m]: the description of the key event makes it very clear that sending it to a surface that is not entered/focused is a compositor bug
<ifreund>
Have you read the wl_keyboard interface carefully?
Tom^-laptop has quit [Quit: WeeChat 4.6.1]
<orowith2os[m]>
I thought I did. But big text blocks tend to cause problems for me, since I'll skim over them...
<orowith2os[m]>
not on purpose, my attention span is just questionable. I get distracted easily.
kts has quit [Quit: Konversation terminated!]
karenw has joined #wayland
<dcz_>
does wl_surface have any facility to set its size, or is it all delegated to roles?
<vyivel>
assuming no viewport, surface size = size of the attached buffer, if any, 0x0 otherwise
<dcz_>
oh, thanks
<kennylevinsen>
ech0: use a buffer format with an alpha channel for your content and set a less than max alpha value - cannot comment on the Unity/SDL bits, only works when not fullscreen as when fullscreen the protocol dictates that other things below cannot leak through
<ech0>
thank you! i decided unity wasn't going to work as they don't really let you do things like that