AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
24.55k stars 2.12k forks source link

Multi-monitor support on Linux under Wayland KDE Plasma? #16128

Open pshirshov opened 1 week ago

pshirshov commented 1 week ago

Describe the bug

I'm trying to run the MVVM template without any modifications on Linux under Wayland KDE Plasma session. I have a triple-head multi-display setup with 0x0 screen in the middle (so, the left screen has negative offset). With Avalonia 11.1.0-rc1 the application window stretches across all the displays and covers all the available screen space. With Avalonia 11.0.10 the window stretches across all 3 displays but doesn't cover all the space and leaves some margins around.

Is my understanding correct that Avalonia does not support multi-display configurations?

To Reproduce

Create an example app with the dotnet new template and run it on Linux under Plasma 6 with a multi-display setup.

Expected behavior

No response

Avalonia version

11.1.0-rc1

OS

Linux

Additional context

No response

kekekeks commented 5 days ago

xrandr --listmonitors

pshirshov commented 4 days ago
❯ xrandr --listmonitors
Monitors: 3
 0: +*DP-1 3840/700x2160/390+3840+0  DP-1
 1: +DP-2 3840/700x2160/390+7680+0  DP-2
 2: +DP-3 3840/700x2160/390+0+0  DP-3