Hello. I am fairly new to GTK development and I am planning to build a launcher-like application using GTK 4 and rust.
I need my application window to always open on top of other windows and in the center of the current monitor.
In gtk3 you could use the “set_keep_above” method on GtkWindow object to achieve that but that seems to have been removed from GTK4. After reading some posts I understood some of the reasons being this decision, but still, I am thinking this is a very common use case to have a launcher on top of other windows like Ulauncher, Albert, Rofi etc.
What would be the best way to do this with GTK 4? Maybe using Hints like _NET_WM_ACTION_ABOVE ??
I would prefer to have a solution that works in X11 and Wayland, but if not possible, I am not seeing using Wayland myself in the next few years and this is mostly a personal tool, so no problem if I have to use X11 APIs directly.
Note that this will be also my first Rust project, so if you can provide with some examples, It would be nice.