<rjarry>
when running /exec -bg 'sleep 5 && echo -e "\a" >&2' from weechat, nothing happens, when running sleep 5 && echo -e "\a" >&2 from outside weechat, the window urgent flag is set
<dnkl>
the urgent flag is only set of the foot window does NOT have keyboard focus
<rjarry>
yep, I added that sleep 5 to have the time to focus to another window
<dnkl>
also make sure no one has emitted the 1042 private mode escape sequence
<rjarry>
the same thing works in other terminals
caveman has joined #foot
<rjarry>
hmm, how could I know that ?
<rjarry>
any specific string I could grep?
<dnkl>
I can reproduce. But I can promise you, this is simply because the BEL isn't forwarded to foot. Question is why
<rjarry>
yeah :)
<rjarry>
could it be some ncurses internal thing that parses foot terminfo in a bad way?
<dnkl>
maybe... what does "infocmp | grep bel" return?
<dnkl>
rjarry: so, both inside and outside weechat looks the same. That'd mean it's sway's fault... not that that makes any sense either...
<rjarry>
T_T
<dnkl>
rjarry: try comparing with e.g kitty.. 🤷
<dnkl>
running out of ideas here..
<rjarry>
dnkl: yeah, good idea
<rjarry>
if all fails, I'll resort to gdb, lol
bgs has joined #foot
<rjarry>
dnkl: after inspecting the wayland debug logs of alacritty/kitty/foot with weechat running and sending a bell character, I noticed only one difference
<rjarry>
dnkl: foot misses one log line that relates to "xdg_activation" wl_registry@**.global(34, "xdg_activation_v1", 1)
<rjarry>
I have absolutely no idea what is that for
<rjarry>
dnkl: I think I may have found what is different, I run weechat in a floating sway window (scratchpad) when the scratchpad is hidden, the urgent flag is ignored, when it is not displayed but does not have keyboard focus, the urgent flag is honnored by the compositor
<rjarry>
so in the end, it may very well be a wayland/sway issue
<rjarry>
yeah, I just confirmed that with kitty. same behaviour when the scratchpad is hidden