How?
How?
Does anybody know how to set a window always on bottom in rust gtk4? set_type_hint() does not exist.
How?
Does anybody know how to set a window always on bottom in rust gtk4? set_type_hint() does not exist.
I chose wrong, must be linux's fault.
Why so salty? I am making an app that I want to stick on the background, and would like it to be cross-platform. I mean, there should be some way to achieve something this basic right? Also, Wayland is going to become the default, and most distros will switch to it.
Any time you point out any flaw in linux the fanboys come out to have a screech and tell you how its all your fault actually. I've learned you just gotta ignore them.
Bold of you to assume Wayland devs do things like absolutely everything else, in fact the opposite is true. As a rule of thumb Wayland devs must always do everything completely differently from everyone else and if you dont like that feel free to ignore the less than 2% of people who use Linux.
You're pigeonholing yourself into an environment which can't support basic functions life þis. Use Xorg, and you'll be able to do it.
Then I'll make my OWN distro. With blackjack. And hookers.
Seriously though... I will have NO desktop environment and run terminal only before I will accept Wayland. Either reach feature parity and stop gaslighting me about functionality that has been there in X11 for decades and is a necessary part of my workflow, or back off.
You'll have to look into GTK's Layer Shell implementation.
Look at the source of Eww. It's written in Rust, it uses GTK (or GDK?), and it has a config option that opens the windows in the bottom layer.
So, as far as I understand, this works with gtk3, which will still work with Xwayland, but will eventually be phased out? Anyway, I think I will just use gtk4 layer shell and hope it supports all compositors eventually
It looks like GNOME is the only compositor that doesn't support the wlr_layer_shell protocol, which is anything but surprising. Smithay works (Cosmic and Niri), wlroots works, Kwin and Mir work, Aquamarine (Hyprland) is not listed, but I know that it works.
I see this as a feature honestly. Screw apps who try to be different with their special little windows
Is it bottom layer in wayland terminology (the one for bars and stuff)? In that case I think gtk4-layer-shell is the answer.
I meant as in keep the always on the bottom/background (or at least move it to the back on launch). I tried gtk4-layer-shell, but unfortunately, it doesn't support some desktop environments (like GNOME).
I know this is pedantic but Linux does give users the free to do this. They just need to add a patch to their desktop and patch their app to make it so.
It gives you the freedom to do that, not the ability
It is easy, just loop through all active windows and increase their layer by one, making yours the most bottom
Depends on the wm.
You're looking for gtk4-layer-shell (doesn't work on gnome tho 'cos they hate you (only gnome is like this))
What actually bothers me is when a window opens and takes my keyboard focus away from where I was working. God, I hate what shit.
Or even worse, a dialog window opens locking the rest of the application but it’s under other windows for some reason and I'm like wtf
There was a time when Steam did that like four times.
Carpentry gives you the ability to make whatever furniture you want
Why dont you make a table that floats in the air with no legs?
Wayland is still too new for a lot of complex functionality. It works well enough for the vast majority of use cases, but X11 is still superior in terms of functionality. But like many systems, control means higher learning curve due to various quirks and complex configurations.
I don't think there are any plans to add more functionality
Wayland is just a few years younger than X11... It was first released in 2008..
X11 was released in 1987. The original X Window System was released in 1984. That is not just a few years of difference.
If you meant the X.org implementation, then compare it to compositors, not to the protocol.
X11 is way, way older than that. But it also was more actively developed for most of that time.
Can't you still script it with wmctrl and xdotool?
No. Those are X11 only.
I had a bunch of wmctrl window placement scripts that I had to rewrite in kwin's (awful) scripting language when I switched to wayland.
Linux gives users the freedom to keep using x11 :p
They are even free to thanklessly maintain X11 for all the other contrarian fossils, because the developers sure aren't doing it anymore.
To be fair… XLibre is doing that.
There's nothing contrarian in using software that works and and fulfills all your needs.
I gladly accept the fossil label, but there's no contrarian sentiment behind it ... I just never felt any pain staying with X11.
Also, the window manager I use is developed by a friend who lives 10min away and texts me every time he has an update, and I love it ... doesn't work on Wayland, though ...
Wayland doesn't work for me, I rely on a tablet in lieu of a mouse and under Wayland it's unusable. I tried hard
Under an X session it behaves flawlessly
Keep angrily gaslighting. Surely you'll EVENTUALLY shame veterans who have been using Linux productively for decades into joining the cult of security over function.
You come into MY home, into MY workflow, take features away from me that have been there ignoring all protests, then have the sheer unmitigated GALL to mock me when I dare to complain?
This is the way...
ugh I wish I could but my Laptop set up says "no, you can't." discrete Nividia GPU with onboard AMD GPU and gaming on x11 is a no go for me. So my only choice is wayland :/
I once heard about someone accidentally pouring tea from a teapot into a mug with instant coffee in it rather than hot water.
Your laptop has the GPU equivalent of that drink.
Is it something specific to a particular model or combination of those? Because I run a laptop with amd integrated GPU and discrete nvidia GPU (not that rare, actually) and Wayland works flawlessly. Games use xwayland without any issues when necessary.
I used to have my reservations a year or so ago, but Wayland has grown in leaps and bounds over the last couple of years. It is much more ready now.
I wonder if we'll find anything to replace it some day, it's not a good protocol.
Maybe someday someone will develop a better replacement, but so far no one has.