rvaiya / warpd

A modal keyboard-driven virtual pointer
MIT License
2.9k stars 131 forks source link

Not working on hyprland #252

Open glyh opened 1 year ago

glyh commented 1 year ago

When I tried warpd --hint, it says:

[destroyed object]: error 4: surface was destroyed before its role object
rijkvp commented 1 year ago

I get the same error with Hyprland on NixOS. But the program also hangs and consumes 100% CPU which seems related to #214.

rat857 commented 1 year ago

@glyh me too image

kkoyung commented 9 months ago

I get the same error with Hyprland on NixOS. But the program also hangs and consumes 100% CPU which seems related to #214.

Same situation with Sway on ArchLinux.

warpd: v1.3.5 (built from: 5d27d1c) (installed via AUR package warpd) sway: v1.9-dev-bbabb9aa (installed via AUR package sway-git) archlinux: 6.6.7-arch1-1

vincentaxhe commented 9 months ago

did not work in hyprland with hyprland-portal which I prefer

LovesTha commented 7 months ago

I too am getting this error in Hyprland + NixOS

I spun up sway briefly to test in there and warpd works fine, so it's most likely a hyprland issue, although it could be something about how I have hyprland configured.

abhinav3398 commented 4 months ago

I don't know about nixos (since Arch btw) but, Have you tried building/installing after setting environment variable that disables building for X(DISABLE_X)?

I was banging my head for 2 days until I tried this, and it worked.

anpandey commented 3 months ago

Using this overlay to override to the latest commit on NixOS worked for me:

nixpkgs.overlays = [
  (self: super: {
    warpd = (super.warpd.overrideAttrs (old: {
      src = super.fetchFromGitHub {
        owner = "rvaiya";
        repo = "warpd";
        rev = "01650eabf70846deed057a77ada3c0bbb6d97d6e";
        sha256 = "sha256-61+kJvOi4oog0+tGucc1rWemdx2vp15wlluJE+1PzTs=";
      };
    })).override{withX = false;};
  })
];

I suspect the pinned version in nixpkgs might be broken.