Does anybody know how to set a window always on bottom in rust gtk4? set_type_hint() does not exist.

top 99 comments

sorted by: hot top controversial new old
[–] 163 points 1 year ago (40 children)

Linux gives users the freedom to keep using x11 :p

  • source
  • hideshow 40 child comments
  • [–] 98 points 1 year ago (30 children)

    They are even free to thanklessly maintain X11 for all the other contrarian fossils, because the developers sure aren't doing it anymore.

  • source
  • parent
  • hideshow 30 child comments
  • [–] 8 points 1 year ago (3 children)

    There's nothing contrarian in using software that works and and fulfills all your needs.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 6 points 1 year ago (1 child)

    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 ...

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 1 year ago* (3 children)

    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

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 year ago (2 children)

    Did you try it that with Gnome? I heard that some input methods suffered with the wayland transition because mutter makes some weird choices. From my personal experience, libinput works great with a wacom tablet, so I'm assuming you ran into an issue with a specific DE.

  • source
  • parent
  • hideshow 2 child comments
  • [+] -36 points 1 year ago* (last edited 1 year ago) (18 children)

    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?

  • source
  • parent
  • hideshow 18 child comments
  • [–] 55 points 1 year ago (16 children)

    Dude, I am using Linux since 25 years.

    Just because you like it so much does not mean that anybody will maintain Xorg for you. Feel free to do it yourself.

    I chose Wayland. Not because security, but because I have a primary HDR ultrawide and an old secondary monitor.

    Running variable refreshrate does not work with this configuration on Xorg.

    HDR does not exist in Xorg.

    And never will be.

    Just keep in complaining just because someone points out that Xorg is dead.

    Xorg is dead! That is not gaslighting, this is a fact

  • source
  • parent
  • hideshow 16 child comments
  • [+] -24 points 1 year ago* (15 children)

    I WILL continue to use Xorg. My workflow requires it. If that means I have to use an unmaintained window manager forever, so be it.

    None of this would be an issue if the Wayland developers weren't so pigheaded that they insist upon forcing their pure, untainted design philosophy onto the project rather than building an inclusive model that allows for backwards compatibility with the system it's meant to replace.

  • source
  • parent
  • hideshow 15 child comments
  • [–] 47 points 1 year ago (7 children)

    I will concede that not every obscure feature has been kept but the vast majority of users are now better served by wayland compositors. I have no idea what you mean by "project", but if they had no concerns for backwards compatibility, then XWayland wouldn't exist.

    Stopping work on X11 because it's been an unmaintainable mess for ages doesn't really count as "forcing" anything upon anyone. I won't pretend that Wayland protocol development hasn't seen plenty of disagreements, but it is still a collaborative process.

    Your disagreements seem fairly vague to me and I can't help but think that the "pigheaded" label is somewhat ironic, after your first paragraph.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 16 points 1 year ago

    There is currently one major Usecase that does not work yet with Wayland. Multiwindow positioning through the application.

    In science, and some stuff like KICaf or Gimp use this feature excessively. And as someones that relies on KiCad, it is a fucking pain.

    But, solutions are being discussed and implementations will follow

  • source
  • parent
  • [–] 1 point 1 year ago (4 children)

    I am not better served. I am now in the quite new position where I'd have to rewrite some of my own personal software if i simply just decided to change DE

  • source
  • parent
  • hideshow 4 child comments
  • [–] 3 points 1 year ago (3 children)

    That sounds like a fairly niche problem to have.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 1 year ago (2 children)

    see that's the problem. Everyone's first response is that it's a niche problem. For every complaint. So what? It's a new problem is the point, however niche.

    Btw, this is not a niche problem. Some big projects have explicitly said they have had this very problem

  • source
  • parent
  • hideshow 2 child comments
  • [–] 0 points 1 year ago (1 child)

    Let me rephrase that: it sounds like a niche problem to have for an end user. It also doesn't sound like a fair complaint, because no long-term replacement to X was ever going to be drop-in the way you seem to expect.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 4 points 1 year ago

    I am not referring to it being a drop-in replacement. I'm referring to the fact that there are multiple supposedly-interoperable-but-not-really non-drop-in replacements is the problem. And it does affect the end user if devs find it difficult to adopt (as many do).

    Wayland is designed for ease of development for wayland designers. "We're just a protocol, the coding is left to anyone else" is the easiest way to write code. Because they decided not to write any at all.

  • source
  • parent
  • [+] -6 points 1 year ago

    The "forcing" was in making Wayland shit, rather than replacing it with something with at least the same capabilities as X11 (even if they are now guarded by granular permissions).

  • source
  • parent
  • [–] 25 points 1 year ago

    building an inclusive model that allows for backwards compatibility with the system it's meant to replace.

    That's honestly a terrible approach and defeats the porpoises. For example, screen recording. You can't be "backwards compatible" (aka any app can record at any time) and have them ask for permission (the honestly better way to go).

    Bear in mind, Wayland devs didn't force anything. They offered an alternative to X and the distros chose that after evaluating pros and cons.

    Pick a distro that aligns with your needs like we all do.

  • source
  • parent
  • [+] 9 points 1 year ago* (last edited 11 months ago) (4 children)
  • [–] 8 points 1 year ago (2 children)

    Not who you asked, but:

    • sxkhd: no global hotkey daemons allowed except the compositor

    • i3wm inside of xfce/plasma: every compositor is implemenyed as a monolithic DE, fuck modularity

    I still switched to Wayland, but can't be bothered to customise a new wm

  • source
  • parent
  • hideshow 2 child comments
  • load more comments (-1 replies)
  • [–] 6 points 1 year ago

    Noones going into your home and taking features away from you, they just decided they don't want to be putting a ton of effort into something 2 people care about.

    The beauty of FOSS is devs are free to make these decisions just like you're free to develop what you need.

  • source
  • parent
  • [–] 6 points 1 year ago (5 children)

    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 :/

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 1 year ago (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    yeah it works flawlessly on Wayland, that wasn't what I was saying. I'm saying on x11 it doesn't work for gaming because of the setup. Say I want to use I3 or Herbstfluftwm. If I open a game and ONLY stay on that game it's fine. but if I navigate away from it to look at a web browser or check discord and then toggle back to the game it results in a black screen or simply shows the desktop and the game is unresponsive. And from what I was able to find online the consensus seems to be it's because x11 doesn't play well with integrated and discrete dual GPUs.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    Oh, my bad. Misread it the other way around. Disregard the comment then. That said. I disagree with the other commenter. Such a combination of GPUs is not rare at all. It was even recommended frequently to PC builders about 5+ years ago.

  • source
  • parent
  • [–] 33 points 1 year ago* (2 children)

    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.

    https://github.com/elkowar/eww/blob/fddb4a09b107237819e661151e007b99b5cab36d/crates/eww/src/display_backend.rs#L61

  • source
  • hideshow 2 child comments
  • [–] [S] 2 points 1 year ago* (1 child)

    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

  • source
  • parent
  • hideshow 1 child comment
  • [–] 8 points 1 year ago

    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.

  • source
  • parent
  • [–] 19 points 1 year ago (8 children)

    Is it bottom layer in wayland terminology (the one for bars and stuff)? In that case I think gtk4-layer-shell is the answer.

  • source
  • hideshow 8 child comments
  • [–] [S] 3 points 1 year ago (7 children)

    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).

  • source
  • parent
  • hideshow 7 child comments
  • [–] 13 points 1 year ago (4 children)

    why do you want to hide the window from the user in such a bizarre way? what's the purpose?

  • source
  • parent
  • hideshow 4 child comments
  • [–] 105 points 1 year ago (13 children)

    Missing feature != Inability to customize

  • source
  • hideshow 13 child comments
  • [–] 22 points 1 year ago (12 children)

    missing feature that used to be there but has been removed in the name of protecting me from myself, is an inability to customize.

  • source
  • parent
  • hideshow 12 child comments
  • [–] 1 point 1 year ago (7 children)

    Which one are you talking about?

  • source
  • parent
  • hideshow 7 child comments
  • [–] [S] 4 points 1 year ago (6 children)
  • [–] 21 points 1 year ago (2 children)

    Alright then, since everyone assumes I'm here to participate in this shitty flamewar instead of genuinely asking what someone is talking about: the article does a pretty good job of explaining what the idea is behind not giving applications absolute coordinates to position their windows in. If that isn't enough and you're one of those people who insist that it must be those evil Wayland devs pushing their security agenda down everyones throats, then you might consider how much of a pain this was for any WM that wanted to do something like scrollable workspaces or managing a device that doesn't have a standard screen shape. If anything, giving apps access to global coordinates the way X did, just makes them less portable to other environments. There are trade-offs here and you might disagree with the compromise we landed on for now, but all of this has already been discussed for years so at this point I really don't care for snarky commentary from people who aren't willing to contribute towards the changes they want to see.

  • source
  • parent
  • hideshow 2 child comments
  • [+] -14 points 1 year ago (2 children)

    I wasn't really asking you but thanks for chiming in I guess.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 year ago (3 children)
  • [–] 5 points 1 year ago (2 children)

    "these new cars have a teeny tiny fuel tank with a tiny range! They used to have a bigger tank!"

    "Drive an old car"

    In this case the new car is objectively inferior, and I can't buy a new old car anymore.

    When something complains about very real problems due to missing functionality, the proper answer isn't "fuck you, use the old stuff, or stop yearning for the functionality that te intentionally crippled"

  • source
  • parent
  • hideshow 2 child comments
  • [–] 11 points 1 year ago

    Depends on the wm.

  • source
  • [–] 10 points 1 year ago

    You're looking for gtk4-layer-shell (doesn't work on gnome tho 'cos they hate you (only gnome is like this))

  • source
  • [–] 18 points 1 year ago (1 child)

    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.

  • source
  • hideshow 1 child comment
  • [–] 7 points 1 year ago (2 children)

    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.

  • source
  • hideshow 2 child comments
  • [–] 41 points 1 year ago (22 children)

    I chose wrong, must be linux's fault.

  • source
  • hideshow 22 child comments
  • [–] [S] 15 points 1 year ago (21 children)

    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.

  • source
  • parent
  • hideshow 21 child comments
  • [–] 15 points 1 year ago (15 children)

    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.

  • source
  • parent
  • hideshow 15 child comments
  • [–] 8 points 1 year ago (13 children)

    If's FOSS, don't cry about it, implement the feature the way you think is best; just like every one else.

  • source
  • parent
  • hideshow 13 child comments
  • [–] 7 points 1 year ago (5 children)

    it will be refused in the name of security. Which is notreally a good argument. "it rather involved being on the other side of that airtight hatchway" type of thing

  • source
  • parent
  • hideshow 5 child comments
  • [–] -1 points 1 year ago (4 children)

    That's how FOSS works. Good ideas get adopted, bad ideas lose adoption. Even I dropped Gnome because of their bike shedding. This is the way.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 4 points 1 year ago (3 children)

    well that's the problem. "I don't use it therefore it must be a bad idea"

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 year ago (2 children)

    "Everybody's adopting other solutions. Our idea must be bad. Let's consider other other solutions and decide if we want to continue with our current implementation." /FTFY

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    everyone's adopting it because they're forced to. And shut up with your "but you can use X", some distros literally plan to drop support for it entirely.

  • source
  • parent
  • hideshow 1 child comment
  • [–] -1 points 1 year ago

    Get out of here. "Everyone"??? Well then, "everyone" can put their effort and their money behind the solution they want. Nobody is stopping them. If they do nothing, then they made their choice. That's how FOSS works. If other people are paying and doing the work, while you and "everyone" does nothing, you have no room to complain.

  • source
  • parent
  • [–] [S] 2 points 1 year ago (2 children)

    It is a design decision to have it implemented by each compositor. which means each one will implement it differently. Currently, the gtk4 layer shell supports some, like sway and hyperland, but not others, like gnome

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago (1 child)

    Sounds like a good opportunity to add the features in the way you see fit.

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 2 points 1 year ago*

    Obviously, I can't create the entire universe by my own, adding features in the way I see fit depends also on what others create. In this case, the app won't be cross-platform, and users will complain when it doesn't work properly on their distro. So I don't see the issue with me complaining a bit as well.

  • source
  • parent
  • 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.

  • source
  • parent
  • [+] -9 points 1 year ago* (last edited 1 year ago) (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 20 points 1 year ago

    I see this as a feature honestly. Screw apps who try to be different with their special little windows

  • source
  • load more comments
    view more: next β€Ί