tauri-apps/tauri

[bug] Icons of dragged item get stuck on the screen after being dropped on Xorg

JuTonic opened this issue · 0 comments

Describe the bug

When dragging files on Xorg, the icon of a file does not disappear after being dropped and gets stuck on the screen until reboot.

2024-10-13.16-12-51.webm

Reproduction

Use Xorg. Create a standard svelte template, put this to src/routes/+page.svelte run dev server and drop a file to the app.

<script lang="ts">
    import { listen } from "@tauri-apps/api/event";

    listen("tauri://drag-drop", (e) => {
        console.log(e);
    });
</script>

<div>drag file here</div>

Expected behavior

Icon should disappear after file is dropped

Full tauri info output

[✔] Environment
    - OS: Artix Linux Unknown x86_64 (X64)
    ✔ webkit2gtk-4.1: 2.46.1
    ✔ rsvg2: 2.59.1
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (2024-05-07)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 22.9.0
    - pnpm: 9.6.0
    - yarn: 1.22.22
    - npm: 10.9.0
    - bun: 1.1.27
    - deno: deno 1.45.5

[-] Packages
    - tauri 🦀: 2.0.3
    - tauri-build 🦀: 2.0.1
    - wry 🦀: 0.46.0
    - tao 🦀: 0.30.3
    - @tauri-apps/api : 2.0.2
    - @tauri-apps/cli : 2.0.3

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.1
    - @tauri-apps/plugin-shell : 2.0.0

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../build
    - devUrl: http://localhost:1420/
    - framework: Svelte
    - bundler: Vite

Stack trace

No response

Additional context

I am using Artix linux with GNOME 47. The issue was also encountered on Ubuntu 24.4.0 x86_64 (X64) (see #11282 (comment)).

It may be a problem of the latest GNOME release? Currently, I cannot probe it on kde or older GNOME versions, so additional testing is needed.