• samc@feddit.uk
    link
    fedilink
    English
    arrow-up
    30
    ·
    10 months ago

    By default, XWayland apps are now allowed to listen for non-alphanumeric keypresses, and shortcuts using modifier keys. This lets any global shortcut features they may have work with no user intervention required, while still not allowing arbitrary listening for alphanumeric keypresses which could potentially be used maliciously

    This is… very smart actually. Any reason this is limited to Xwayland? (Is that XDG portal a thing yet?)

    • ElectroLisa@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      11
      ·
      10 months ago

      X apps can read all of your keystrokes. Wayland by default doesn’t allow this, and because of that apps running on XWayland can ex. have it’s global shortcuts broken. Plasma already had an option to change this behaviour back in 5.27. I guess they changed it from “Never” read keystrokes to “Only with modifier keys”, as a default.

    • aksdb@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      10 months ago

      Shit, now malicious apps can spy my master password, which is CTRL, CTRL, ALT, META, CTRL, LEFT, RIGHT, LEFT, CTRL

    • fossphi@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      10 months ago

      Can wayland native apps not do that already? I assumed that they could and that’s why this was being built for xwayland