I’m working on a window switching tool for Wayland that’s kinda like Alt-Tab. However, it seems like there’s no compositor agnostic way to do things like:

  • List all currently open windows
  • Ask which window is currently focused
  • Focus a specific window

Therefore, if I want my tool to support multiple compositors, I have to re-implement this logic for each compositor.

Is the motivation security through program isolation? That doesn’t quite make sense to me since programs still can do the above things, they just have to do it compositor specifically: hyprctl clients on Hyprland, niri msg windows for Niri, etc. Also, you could just have a Wayland API that requires elevated privileges for doing these things, which the user would have to opt-in to for a specific program.

I feel like this design of Wayland causes a lot of fragmentation. There are a lot of tools that are for example Hyprland-only.

Could you please enlighten me on why Wayland has this design?

  • TrollAccount69@lemmy.ml
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    13 hours ago

    Because you’re fine with wayland.

    The op is flailing, trying to use the system you’re at the very least fine with but I now suspect you feel a certain affinity towards but they can’t. They can’t use wayland unless you help. Their various windows are shuffled on top of one another and require the use of a mouse to switch between. You could be helping the op instead of trolling. But you’re not.

    Why are you not helping the op, umbrella?

      • TrollAccount69@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        11 hours ago

        So people trying to use it could more easily do so.

        Because you believe in the principles behind it and want to bring them in harmony with the ops problem.

        As an action in support of the open source principles you espouse, improving the commons for no other reason than your empathy and love for the human spirit!

          • TrollAccount69@lemmy.ml
            link
            fedilink
            arrow-up
            1
            ·
            10 hours ago

            What are you trying to say here?

            It clearly has a serious problem that the op is experiencing. Why not help the op instead of dismissing their concerns? It really seems like you’re trolling or at least engaging in bad faith here…

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

              why don’t you? you seem bothered by it and maybe op stumbled upon something worth looking into.

              • TrollAccount69@lemmy.ml
                link
                fedilink
                arrow-up
                1
                arrow-down
                1
                ·
                7 hours ago

                I already answered that. I don’t think wayland should exist let alone be fixed and even if I wanted to I described the development environment around it as sclerotic and sycophantic.

                  • TrollAccount69@lemmy.ml
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    5 hours ago

                    I do whenever possible. If you’ll remember, I replied to the ops query about why wayland is the way it is.

                    A better question is why are you replying to me over and over again asking circular questions?