OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
wayland-compat medium common DISPUTE

Drag and drop refuses to drop between XWayland and native Wayland apps

omarchyarchendeavouroscachyosmanjarohyprlanddesktoplaptop
AUDITED Audited against its sources and confirmed accurate.
AUDIT NOTE

Every load-bearing specific checks out. (1) The 0.46.0 quotation is verbatim from https://hypr.land/news/update46/ (fetched, HTTP 200): "XWayland Drag and Drop is back! You can now drag stuff from your Wayland clients to X11 clients." (2) "Electron >= 38.2 defaults to Wayland" is exactly what wiki.archlinux.org/title/Wayland#Electron says: "Since Electron 38.2, Wayland is used by default ... For earlier versions ... --ozone-platform=auto or --ozone-platform=wayland ... or by setting ELECTRON_OZONE_PLATFORM_HINT to auto or wayland." Both the env var and the flag are named correctly, and --ozone-platform=wayland (not the removed --ozone-platform-hint) is what the ArchWiki Electron page's own electron-flags.conf example uses. (3) hyprctl clients really does emit an xwayland: field: Hyprland v0.56.2 src/debug/HyprCtl.cpp formats "\n\txwayland: {}" from sc<int>(w->m_isX11), so xwayland: 1 means X11 and the tab indent makes the record's grep -E '^\s+(class|title|xwayland)' match. (4) ~/.config/uwsm/env is correct for Omarchy 4, which is a uwsm session. The hyprland-wiki uwsm page explicitly says not to put env vars in hyprland.lua. (5) Both cited Hyprland issues exist and are on-topic (#1083 "drag and drop doesn't seem to work with applications running under xwayland" from 2022, and #7644 "Drag and drop does not work in Hyprland (Wayland)" from 2024). No open XWayland-DnD issues remain in a title search of the repo, which supports the record's "fixed upstream, the remaining cause is app-side" framing. (6) Both sed one-liners produce valid Exec lines against Arch's Exec=/usr/bin/slack %U shape. (7) omarchy update is correctly preferred over direct pacman, with no -Sy and nothing destructive. Two cosmetic nits, neither a defect: the symptom's "dragging an image out of Firefox into GIMP" is not actually an XWayland boundary on a stock Omarchy, where MOZ_ENABLE_WAYLAND=1 and GDK_BACKEND=wayland,x11,* are set in /usr/share/omarchy/default/hypr/envs.lua and both apps are Wayland-native. Step 3 is also already a no-op on Omarchy, which sets ELECTRON_OZONE_PLATFORM_HINT=wayland in that same file.

Symptom

Dragging a file from the file manager onto Discord, Slack, Steam or a Java IDE does nothing. The drop cursor shows the "no entry" symbol and the app never receives the file. Dragging an image out of Firefox into GIMP fails the same way. Everything works if I log into an X11 session instead.

Cause

A drag that starts in a Wayland client and ends in an X11 client (or the reverse) has to be bridged by the compositor's XWayland DnD implementation. Hyprland's broke and was re-added in 0.46.0. The release notes say "XWayland Drag and Drop is back! You can now drag stuff from your Wayland clients to X11 clients." On current Hyprland the usual remaining cause is that one of the two apps is on the X11 side when it did not have to be: Electron apps fall back to X11 whenever the Ozone platform is not selected, and drags between two apps on the *same* side always work.

Fix

  1. Check your Hyprland version. Anything before 0.46.0 has no XWayland DnD at all:

hyprctl version

On Omarchy update through omarchy update rather than a direct pacman transaction.

  1. Find out which side each app is actually on:

hyprctl clients | grep -E '^\s+(class|title|xwayland)'

xwayland: 1 means that client is an X11 client.

  1. Move the Electron/Chromium app to native Wayland so both ends of the drag are Wayland clients. Electron ≥ 38.2 defaults to Wayland. Older builds need a hint:

# ~/.config/uwsm/env
export ELECTRON_OZONE_PLATFORM_HINT=wayland

or per app, for Arch-packaged Electron apps:


# ~/.config/electron-flags.conf
--ozone-platform=wayland

For apps that bundle Electron, patch the desktop entry:


cp /usr/share/applications/slack.desktop ~/.local/share/applications/
sed -i 's|^Exec=\(.*\)/slack |Exec=\1/slack --ozone-platform=wayland |' ~/.local/share/applications/slack.desktop
update-desktop-database ~/.local/share/applications
  1. If the target genuinely cannot run on Wayland (Steam, most Java/Swing apps, Wine), drag from an X11 file manager instead so both ends are X11:

GDK_BACKEND=x11 nautilus &   # or: GDK_BACKEND=x11 thunar &

or sidestep the drag entirely and use the app's own file-open dialog.

  1. Restart both applications. The backend is chosen at process start.

Verify

hyprctl clients shows xwayland: 0 for both the source and the target app, and the drop is accepted. As a control, drag between two known-native apps (e.g. two GTK4 windows) to confirm DnD works at all in your session.

Sources

drag-drop-fails-across-xwayland-boundary