Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

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

  • 1 trả lời
  • 1 gặp vấn đề này
  • 11 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

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.

Tất cả các câu trả lời (1)

more options