If anyone wants to give an ELI5 or a link to a video that ELI5 I’d be incredibly thankful

I swear that all the stuff I find is like super in depth technical stuff that just loses me in no time flat

  • SavvyWolf@pawb.social
    link
    fedilink
    English
    arrow-up
    71
    arrow-down
    2
    ·
    2 months ago

    Programs running graphically (Firefox, your file browser, etc.) need a way to tell the system “draw these pixels here”. That’s what the display server does; it takes all these applications, works out where their windows are and manages that pixel data.

    XOrg has historically been the display server in common use, but it’s very old and very cobbled together. It generally struggles with “modern” things that must people expect today. Multimonitor setups, vsync, hdr and all that. They work, but support is hacked together and brittle.

    Wayland is a replacement for XOrg that was designed from scratch to fix a lot of these issues. But it’s been an uphill battle because XOrg is the final boss of legacy codebases.

    tl;dr They’re both software that manages drawing pixels from applications to the display.

    • Gormadt@lemmy.blahaj.zoneOP
      link
      fedilink
      arrow-up
      10
      ·
      2 months ago

      The TLDR was really helpful NGL

      So it’s software that handles software wanting to display things on the screen. Because having each piece of software do it itself would be not only chaos but a massive security concern. And it’s a big deal because it fixes (by replacing) the old software with something that’s easier to work with than the old ways of doing things (due to all new code that’s not spaghetti that’s hacked together over decades).

      Am I close?

      • loutr@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        Because having each piece of software do it itself would be not only chaos but a massive security concern.

        Not really, the main point is that (most) apps don’t know where they are on the screen, whether they’re minimized, on the active workspace, … and they don’t care either. That’s the responsibility of the window manager.

        The app tells the display server “I need a window to display these pixels” and that’s it. And the window manager, well, manages these windows.

        On the topic of security, X11 doesn’t handle security at all, that’s one of the main issues. So any graphical app can read the other windows’ pixels, grab everything you type, everything you copy, … OTOH Wayland isolates apps so they can’t do that by default. Apps that really need to (screenshot apps, …) can use “portals” to ask for these permissions.

      • infeeeee@lemm.ee
        link
        fedilink
        arrow-up
        8
        ·
        2 months ago

        It’s not os based, usually you can switch between the 2 on your login screen. To check if you are in a wayland session, type this in a terminal:

        echo $XDG_SESSION_TYPE
        

        The answer should be wayland or x11

      • roflo1@feddit.nl
        link
        fedilink
        arrow-up
        28
        ·
        edit-2
        2 months ago

        Initial release of xorg was 2004

        Yeah, but XOrg was forked from XFree86.

        or in meme form

        • Pennomi@lemmy.world
          link
          fedilink
          English
          arrow-up
          23
          ·
          edit-2
          2 months ago

          And the X11 Protocol was released in 1987. We’re not replacing Xorg specifically as much as we are replacing X11.

      • wildbus8979@sh.itjust.works
        link
        fedilink
        arrow-up
        11
        ·
        2 months ago

        Xorg is from 2004, but it is an implementation of X11/X Windows which dates as far back as 1984. Wayland replaces both of that.

      • rtxn@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        3
        ·
        edit-2
        2 months ago

        That hill has a name. GNOME. Wayland’s governance on the whole is a fucking disaster (alternatively, the best sitcom you’ll ever see), but GNOME is a particularly malignant growth on the project’s taint, with completely baseless NACKs that have delayed some protocols by months, and missing/incomplete features in Mutter.