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

    • rozodru@pie.andmc.ca
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 months 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 :/

      • palordrolap@fedia.io
        link
        fedilink
        arrow-up
        23
        ·
        2 months 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
      5
      ·
      2 months ago

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

    • heartbreaker@sh.itjust.worksOP
      link
      fedilink
      arrow-up
      23
      ·
      edit-2
      2 months 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.

      • the_riviera_kid@lemmy.world
        link
        fedilink
        English
        arrow-up
        23
        ·
        2 months 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
          13
          ·
          2 months ago

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

          • vrighter@discuss.tchncs.de
            link
            fedilink
            arrow-up
            10
            ·
            2 months 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
              ·
              2 months 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.

                • highball@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  2 months ago

                  “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

            • highball@lemmy.world
              link
              fedilink
              English
              arrow-up
              3
              ·
              2 months 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.

          • heartbreaker@sh.itjust.worksOP
            link
            fedilink
            arrow-up
            4
            ·
            2 months 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

              • heartbreaker@sh.itjust.worksOP
                link
                fedilink
                arrow-up
                2
                ·
                edit-2
                2 months 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.

            • highball@lemmy.world
              link
              fedilink
              English
              arrow-up
              3
              ·
              2 months 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.

      • mycodesucks@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        edit-2
        2 months 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.

      • Ŝan • 𐑖ƨɤ@piefed.zip
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 months 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.

      • kittenzrulz123@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        1
        ·
        2 months 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.

  • Xylight‮@lemdro.id
    link
    fedilink
    English
    arrow-up
    25
    ·
    2 months ago

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

  • Fizz@lemmy.nz
    link
    fedilink
    arrow-up
    19
    ·
    2 months 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.

  • Jul (they/she)@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    11
    ·
    2 months 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.

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

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

  • Sivecano@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    9
    ·
    2 months ago

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

  • 🍉 Albert 🍉@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    2 months ago

    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?

  • bookmeat@lemmynsfw.com
    link
    fedilink
    arrow-up
    7
    ·
    2 months 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.

    • DefederateLemmyMl@feddit.nl
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      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.

      • Fmstrat@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        While not all functions work, they do a lot of things in Wayland. xdotool search, xdotool winactivate, xdotool windowsize, xdotool windowmove, xdotool keyup, and wmctrl -r all work fine, and my “move to” script (that positions all my windows on startup) works in Wayland using those.

        • DefederateLemmyMl@feddit.nl
          link
          fedilink
          arrow-up
          2
          ·
          2 months ago

          wmctrl and xdotool don’t do anything for me with native Wayland windows. It only seems to work for applications that use Xwayland.

          So while I can use it to resize and position xterm or urxvt windows, it does not work with foot or kitty or firefox windows.

          • Fmstrat@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 months ago

            Interesting. I will test my laptop woth Firefox tomorrow, see if there is anything janky going on that would make it work.

            I currently have it working with Chromium web apps, Thunderbird, and Element.