ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput
yrlf has quit [Quit: Ping timeout (120 seconds)]
yrlf has joined #wayland
Moprius has joined #wayland
dviola has joined #wayland
dviola has left #wayland [WeeChat 4.4.3]
dviola has joined #wayland
<DemiMarie>
Does wlroots always do composition, or can one use it without composition?
glennk has quit [Ping timeout: 480 seconds]
rv1sr has quit [Ping timeout: 480 seconds]
rv1sr has joined #wayland
Moprius has quit [Quit: bye]
rv1sr has quit []
abeltramo5895238 has quit [Quit: Ping timeout (120 seconds)]
abeltramo5895238 has joined #wayland
<soreau>
DemiMarie: I guess that all depends on what you mean by composition, exactly
<soreau>
it supports direct scanout of surfaces and pixman backend as opposed to gles/vulkan, at least
rasterman has quit [Quit: Gettin' stinky!]
bjorkintosh has quit [Quit: "Every day, computers are making people easier to use." David Temkin]
bjorkintosh has joined #wayland
hergertme has joined #wayland
vincejv- has joined #wayland
vincejv has quit [Ping timeout: 480 seconds]
mxz__ has joined #wayland
mxz_ has quit [Ping timeout: 480 seconds]
mxz has quit [Ping timeout: 480 seconds]
mxz has joined #wayland
nerdopolis has quit [Ping timeout: 480 seconds]
kts has joined #wayland
kts has quit []
coldfeet has joined #wayland
sima has joined #wayland
glennk has joined #wayland
rv1sr has joined #wayland
mriesch_ has joined #wayland
lsd|2 has joined #wayland
lsd|2 has quit []
lsd|2 has joined #wayland
mriesch has quit [Ping timeout: 480 seconds]
<kennylevinsen>
DemiMarie: wlr_scene includes a renderer that will perform composition if called and if direct scanout fails. You can just not call that renderer if you don't want composition. Output layers also allow direct scanout with many surfaces.
mriesch_ has quit []
mriesch has joined #wayland
kts has joined #wayland
kts has quit []
al has quit [Ping timeout: 480 seconds]
abhimanyu1 has joined #wayland
abhimanyu1 is now known as abhimanyu
<bluetail>
Where would I need to look if I wanted to force input of a specific keyboard to a specific window? Or could I just catch all input of that specific device, and if it's input is used, to focus a specific window if it's not already done? I think wayland you cannot send keystrokes to a window while it's not in focus, correct?
<whot>
bluetail: i don't think that's supported by any compositor, especially not so client-triggered (like x11 grabs) since it'd make it quite trivial to capture key events
<bluetail>
whot no, through xdotool you can send keystrokes to windows even when unfocused. You could filter by specific ones
<bluetail>
dotool won't send keystroke to windows
<bluetail>
Tho if you focus it, it will. But not hidden
<whot>
iirc the only way to send events to a specific window in X is using XSendEvent but that one is also ignored by toolkits for that reason
<whot>
for normal key events xdotool will just use xtest, the closest to that would be e.g. the remote desktop portal
<whot>
but that too is bound to focus, etc., so sending keystrokes to a random window is not something supported
<bluetail>
I had a really old java game where I used that. But in the current use-case I just have a second game on a second table elsewhere in the room, and I want to focus that window when nearby. Maybe I should use a small proximity sensor. What do you think should I do?
<bluetail>
Can't I just look with libinput if keyboard x is sending something, and then do the rest from there?
<whot>
what's the exact use-case?
<bluetail>
I got a taiko drum at the other end of the room running a firefox window with taiko no tatsujin. I don't want to focus it manually everytime I reseat myself
<bluetail>
the drum is physically a keyboard
<bluetail>
Zhong Taiko (Drum with sensing capability) but puts out with a ATMEL keyboard
<any1>
In sway, you can map inputs to specific outputs or regions, but it probably doesn't work for keyboards as it's not considered meaningful
<bluetail>
I am on sway :). Time for a use-case or maybe I can interface with libinput or something. Well, I just need to catch events of a specific keyboard
<any1>
You could put the "keyboard" on a different seat. That way its focus doesn't change, but you would have to figure out a way to focus the seat in the first place
<bluetail>
That's dumb.
<any1>
Thanks?
<bluetail>
I'll try to find a way for ... if keyboard ATMEL has been struck, and if a window is available that fits criteria, then focus it
<bluetail>
If window already focused, do nothing
<bluetail>
Sorry I didn't want to be offending. The idea that this has inherent complexity went a bit over my head
<bluetail>
I am thankful for any input, but I also understand that it probably is rarely asked
<any1>
"man 5 sway-input". Look for "seat". Allows you to have multiple foci
al has joined #wayland
<whot>
fwiw, libinput is totally the wrong level for this, it's a hw abstraction layer but you want to do logical things with the events
<whot>
heh, fun idea: you could write the evdev events for alt-tab into the event node. then you put it on a different seat like any1 suggested, write the alt-tab events until it's focused on the right window and you have an uncle named robert
<whot>
look for evemu-event for scripting this
___nick___ has joined #wayland
<bluetail>
whot I've setup the seat, and now the keyboard is only working on that workspace I've assigned it to. But it does not do any focusing. About hijacking the alt-tab... I don't like that at all. I guess, I just make a shortcut to focus said workspace.
<bluetail>
If I however was using the machine with somebody else, that wouldn't work out. Dolphin-emu got background input which works with gamepad, I was hoping I could have something similar for firefox
<bluetail>
`Background Input lets you use the controller or keyboard even if Dolphin isn't in focus`
<bluetail>
I wonder how it still works in wayland 😕
<zamundaaa[m]>
bluetail: controller inputs don't (yet) go through the compositor
<bluetail>
So in other words, this will stop working once wayland has it corrected?
<bluetail>
I was just curious at how that works, because it essentially is very similar to what I wanted
<zamundaaa[m]>
Depends on how it's done, but binding it to window focus would be the goal
<bluetail>
Well, no. You don't need window focus, thats the idea of background input
<bluetail>
You could play a game, and your wife could browse youtube
<zamundaaa[m]>
That's the idea of the Dolphin option, but not of routing inputs through the compositor
<zamundaaa[m]>
What you want is really multi seat
<bluetail>
zamundaaa[m] I have read sway man and I don't understand the seat section, I guess I am going to ask in #sway for a example configuration.