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

  • bookmeat@lemmynsfw.com
    link
    fedilink
    arrow-up
    2
    ·
    5 hours ago

    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.

  • Fizz@lemmy.nz
    link
    fedilink
    arrow-up
    13
    ·
    12 hours ago

    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.

    • anyhow2503@lemmy.world
      link
      fedilink
      arrow-up
      98
      arrow-down
      5
      ·
      2 days ago

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

      • megrania@discuss.tchncs.de
        link
        fedilink
        arrow-up
        2
        ·
        4 hours ago

        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 …

      • Hadriscus@jlai.lu
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        12 hours ago

        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

        • anyhow2503@lemmy.world
          link
          fedilink
          arrow-up
          1
          arrow-down
          1
          ·
          4 hours ago

          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.

        • mech@feddit.org
          link
          fedilink
          arrow-up
          5
          ·
          2 hours ago

          Quote from their readme:

          It’s explicitly free of any “DEI” or similar discriminatory policies.
          Together we’ll make X great again!

          I’ll pass.

      • mycodesucks@lemmy.world
        link
        fedilink
        arrow-up
        16
        arrow-down
        53
        ·
        edit-2
        2 days ago

        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?

        • kuhli@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          6
          ·
          edit-2
          13 hours 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.

        • vapeloki@lemmy.world
          link
          fedilink
          arrow-up
          65
          arrow-down
          6
          ·
          2 days ago

          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

          • mycodesucks@lemmy.world
            link
            fedilink
            arrow-up
            14
            arrow-down
            44
            ·
            edit-2
            2 days ago

            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.

            • Railcar8095@lemmy.world
              link
              fedilink
              arrow-up
              29
              arrow-down
              1
              ·
              1 day 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.

            • anyhow2503@lemmy.world
              link
              fedilink
              arrow-up
              47
              arrow-down
              1
              ·
              2 days ago

              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.

              • vapeloki@lemmy.world
                link
                fedilink
                arrow-up
                17
                ·
                2 days 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

              • jdr@lemmy.ml
                link
                fedilink
                arrow-up
                2
                arrow-down
                8
                ·
                18 hours 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).

              • vrighter@discuss.tchncs.de
                link
                fedilink
                arrow-up
                2
                arrow-down
                2
                ·
                1 day ago

                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

            • ☂️-@lemmy.ml
              link
              fedilink
              arrow-up
              10
              ·
              1 day ago

              i’m just curious what is the feature you are using in xorg you can’t replicate in wayland?

            • vapeloki@lemmy.world
              link
              fedilink
              arrow-up
              10
              arrow-down
              3
              ·
              2 days ago

              Then, build your own replacement! If it is do dinpley, fork Wayland, add what you need.

    • rozodru@pie.andmc.ca
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 days ago

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

      • dustyData@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 hours ago

        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.

        • rozodru@pie.andmc.ca
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 hours ago

          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.

          • dustyData@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            30 minutes 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.

      • palordrolap@fedia.io
        link
        fedilink
        arrow-up
        23
        ·
        2 days ago

        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.

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      6
      arrow-down
      3
      ·
      2 days ago

      I wonder if we’ll find anything to replace it some day, it’s not a good protocol.

      • Ŝan@piefed.zip
        link
        fedilink
        English
        arrow-up
        7
        arrow-down
        1
        ·
        1 day ago

        Maybe someday someone will develop a better replacement, but so far no one has.

  • Xylight@lemdro.id
    link
    fedilink
    English
    arrow-up
    24
    arrow-down
    3
    ·
    1 day ago

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

    • vrighter@discuss.tchncs.de
      link
      fedilink
      arrow-up
      17
      arrow-down
      4
      ·
      1 day ago

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

          • anyhow2503@lemmy.world
            link
            fedilink
            arrow-up
            21
            arrow-down
            1
            ·
            1 day ago

            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.

    • heartbreaker@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      21
      arrow-down
      7
      ·
      edit-2
      2 days ago

      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.

      • kittenzrulz123@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        1 hour ago

        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.

      • the_riviera_kid@lemmy.world
        link
        fedilink
        English
        arrow-up
        20
        arrow-down
        8
        ·
        2 days ago

        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.

        • highball@lemmy.world
          link
          fedilink
          English
          arrow-up
          14
          arrow-down
          5
          ·
          1 day ago

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

            • highball@lemmy.world
              link
              fedilink
              English
              arrow-up
              3
              arrow-down
              1
              ·
              14 hours ago

              You got me. Average FOSS user here. Be the change you want to see or make the changes you want to see. Stop whining and complaining. Pretty simple.

          • vrighter@discuss.tchncs.de
            link
            fedilink
            arrow-up
            8
            arrow-down
            3
            ·
            1 day ago

            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

            • highball@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              1
              ·
              14 hours ago

              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.

          • heartbreaker@sh.itjust.worksOP
            link
            fedilink
            arrow-up
            4
            arrow-down
            2
            ·
            1 day ago

            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

          • Crashumbc@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            3
            ·
            1 day ago

            And Linux people wonder why the year of the “desktop” never comes…

            Gatekeep much?

            • highball@lemmy.world
              link
              fedilink
              English
              arrow-up
              3
              arrow-down
              1
              ·
              14 hours ago

              You have the opportunity to be the change you want to see or make the change you want to see. Whining and crying about it doesn’t help anybody. It’s time you learned that.

      • Ŝan@piefed.zip
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        8
        ·
        1 day ago

        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.

      • mycodesucks@lemmy.world
        link
        fedilink
        arrow-up
        6
        arrow-down
        14
        ·
        edit-2
        2 days ago

        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.

    • heartbreaker@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 day ago

      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

      • rtxn@lemmy.worldM
        link
        fedilink
        arrow-up
        9
        ·
        1 day 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.

    • heartbreaker@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      5
      arrow-down
      2
      ·
      2 days ago

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

  • istdaslol@feddit.org
    link
    fedilink
    arrow-up
    11
    ·
    2 days ago

    It is easy, just loop through all active windows and increase their layer by one, making yours the most bottom

  • Jul (they/she)@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    7
    ·
    2 days ago

    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.

      • rtxn@lemmy.worldM
        link
        fedilink
        arrow-up
        23
        ·
        edit-2
        2 days ago

        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.

        • UnityDevice@lemmy.zip
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 day ago

          And xorg is older than it appears, as it was forked from the much older XFree86 over licensing disagreements. XFree86 started in 1991 according to Wikipedia.