Skip to content

Crashing on wayland #61

@ajayd-san

Description

@ajayd-san

Hey,
I was trying to copy bytes to my clipboard using this library using

clipboard.Write(clipboard.FmtText, []byte(id))

But it immediately crashes, with this error:

───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: err.log
───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ X Error of failed request:  BadWindow (invalid Window parameter)
   2   │   Major opcode of failed request:  18 (X_ChangeProperty)
   3   │   Resource id in failed request:  0x20000b
   4   │   Serial number of failed request:  16
   5   │   Current serial number in output stream:  18
   6   │ exit status 1

I tried it again in a Xorg session, and it works as intended.

Also I run hyprland on wayland and gnome on xorg (both of them on arch).

I can take up this issue if you point me in the right direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions