Windows 10 已于2025年10月14日停止支持。如果您正在使用 Windows 10,参见 这篇文章

Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解
已存档

xdg-activation-1 protocol doesn't work in Sway

cor-el 已回复
op.7734

So, I found out recently that Firefox added xdg-activation-1 protocol support some time ago and decided to check it out. I use Sway as a Wayland compositor and I tried activating Firefox by clicking on a link in terminal and by activating a notification. In both cases I get the same error message in logs:

[Parent 30362: Main Thread]: D/Widget [7fd433271800]: nsWindow::SetFocus Raise 1 [Parent 30362: Main Thread]: D/Widget [7fd433271800]: gFocusWindow [0] [Parent 30362: Main Thread]: D/Widget [7fd433271800]: mContainer [7fd4475ac4d0] [Parent 30362: Main Thread]: D/Widget [7fd433271800]: Toplevel widget [7fd44758a660] [Parent 30362: Main Thread]: D/Widget [7fd433271800]: nsWindow::SetUrgencyHint widget 7fd44758a660 [Parent 30362: Main Thread]: D/Widget [7fd433271800]: requesting toplevel activation [7fd433271800] [Parent 30362: Main Thread]: D/Widget nsWindow::RequestFocusWaylandWindow(7fd433271800) gFocusWindow 0 [Parent 30362: Main Thread]: D/Widget missing gFocusWindow, quit.

What can be causing it? I know for certain that XDG activation works in Sway, because my terminal (foot) activates without any problems (whenever BEL code is received, for example).

If that's helpful, I tried both Firefox 97 and latest Nightly - no difference.

Steps to reproduce: 1. In Sway, launch Firefox with `firefox --MOZ_LOG=Widget:4` 2. In another program, click on a link, or use https://www.bennish.net/web-notifications.html to send yourself a notification you can click on. 3. Observe an error that I provided earlier in logs.

So, I found out recently that Firefox added xdg-activation-1 protocol support some time ago and decided to check it out. I use Sway as a Wayland compositor and I tried activating Firefox by clicking on a link in terminal and by activating a notification. In both cases I get the same error message in logs: ''[Parent 30362: Main Thread]: D/Widget [7fd433271800]: nsWindow::SetFocus Raise 1 [Parent 30362: Main Thread]: D/Widget [7fd433271800]: gFocusWindow [0] [Parent 30362: Main Thread]: D/Widget [7fd433271800]: mContainer [7fd4475ac4d0] [Parent 30362: Main Thread]: D/Widget [7fd433271800]: Toplevel widget [7fd44758a660] [Parent 30362: Main Thread]: D/Widget [7fd433271800]: nsWindow::SetUrgencyHint widget 7fd44758a660 [Parent 30362: Main Thread]: D/Widget [7fd433271800]: requesting toplevel activation [7fd433271800] [Parent 30362: Main Thread]: D/Widget nsWindow::RequestFocusWaylandWindow(7fd433271800) gFocusWindow 0 [Parent 30362: Main Thread]: D/Widget missing gFocusWindow, quit.'' What can be causing it? I know for certain that XDG activation works in Sway, because my terminal (foot) activates without any problems (whenever BEL code is received, for example). If that's helpful, I tried both Firefox 97 and latest Nightly - no difference. Steps to reproduce: 1. In Sway, launch Firefox with `firefox --MOZ_LOG=Widget:4` 2. In another program, click on a link, or use https://www.bennish.net/web-notifications.html to send yourself a notification you can click on. 3. Observe an error that I provided earlier in logs.

所有回复 (1)