Many XWayland programs (mostly games) do weird things in multi-monitor configurations where the monitors have different sizes. Setting a primary XWayland monitor usually fixes them. You can do it via 'xrandr' but why not automate it as much as possible?
hyprpm add https://github.com/zakk4223/hyprXPrimary
and wait for hyprpm to build the plugin.hyprpm enable hyprXPrimary
Add the line "zakk4223/hyprXPrimary",
to your hyprload.toml
config, like this
plugins = [
"zakk4223/hyprXPrimary",
]
Then update via the hyprload,update
dispatcher.
make all
exec-once = hyprctl plugin load <ABSOLUTE PATH TO hyprXPrimary.so>
hyprctl monitors
Add the following to your hyprland configuration:
Replace DP-1
with the name you want.
plugin {
xwaylandprimary {
display = DP-1
}
}