MarkusTegelane++
This video showcases how to have a window always at the desktop level, i.e. behind other windows and never come to the front when clicking on it for several desktop platforms (Windows, Linux, macOS).
I've been looking for a tutorial on this and other than a post on Reddit, haven't found much about it, so I decided to make a tutorial on this topic!
I'm not showing a way to do it with just code on Linux, because of the crazy modularity Linux has in terms of different window managers and display servers it has. So I'm going to limit myself on this video to just showing how to add a window rule in KDE Plasma with KWin window manager to achieve a similar effect.
Credit to @almenscorner on Reddit for coming up with a solution that works on macOS: https://www.reddit.com/r/AvaloniaUI/comments/1de1jcq/comment/l8f2zcm/
My demo app: https://github.com/MarkusMaal/StayBehindDemo
Chapters:
0:00 Windows
9:34 Linux
13:57 macOS
Useful links:
Microsoft Visual Studio (IDE): https://visualstudio.microsoft.com/
JetBrains Rider (IDE): https://www.jetbrains.com/rider/
Avalonia UI documentation: https://docs.avaloniaui.net/
Firefox theme: https://addons.mozilla.org/en-US/firefox/addon/arona/
Wallpaper: https://www.teahub.io/viewwp/iwhJTh_32-9-wallpaper-4k/
Background music:
Kevin MacLeod - Perpectives
Kevin MacLeod - Gymnopedie No. 1 (helilooja: Erik Satie)
Kevin MacLeod - Adventures in Adventureland
Kevin MacLeod - Phantom from Space
Published: March 26 2025
Filename: avaavas.mp4
Category: Programming
Avalonia
C#
dotnet
.NET
multi-platform
desktop
desktop level
behind other windows
stay behind
send to back
back of other windows