News for hackers. Stuff that matters.
Re:Improving Xwayland window resizing by tomxor on Tuesday October 29, 2024 @07:48PM (#41990641)
I'm using Debian so I can't say how well this applies to FreeBSD:

You need to have `xdg-desktop-portal-wlr` or equivalent package installed (should be depended upon by sway package really), and also the gtk one for some other stuff wlroots doesn't implement like notifications I think (don't worry it doesn't drag in all of gnome).

This is technically the only thing you should need to do beyond picking a wayland compatible screen capture program or browser - However it's possible the dbus variables are broken if you wrote your own sway config from scratch (guilty)... Depending on your OS, the default config should do this automatically, on Debian it includes /etc/sway/config.d/50-systemd-user.conf, I can't say for FreeBSD. So point is if your config omits the dbus-update-activation-environment command, you probably need to include it in your config.

TL;DR

    apt install xdg-desktop-portal-{wlr,gtk}
And include this at the top of your sway.conf

    exec dbus-update-activation-environment --systemd \
      DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway
Those environment variables are set by sway, but this line imports them into dbus (is my limited understanding) so that programs call the correct xdg portal backend.

Remember to restart sway to test this.

Re:Improving Xwayland window resizing by tomxor on Tuesday October 29, 2024 @10:23PM (#41991371)
Whoops, you will probably need to remove the --systemd flag.