Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--and-exit does not work on Sway/Wayland #70

Open
FabianUntermoser opened this issue Dec 4, 2023 · 1 comment
Open

--and-exit does not work on Sway/Wayland #70

FabianUntermoser opened this issue Dec 4, 2023 · 1 comment

Comments

@FabianUntermoser
Copy link

Hi there, starting dragon-drop from a wayland terminal breaks the --and-exit feature.
The popup still stays on screen, even if you drag the file somewhere.

Starting it from a terminal using X11, it works.

How can I ensure that dragon-drop is always started under X11?

@trinitronx
Copy link

trinitronx commented Sep 9, 2024

How can I ensure that dragon-drop is always started under X11?

It should be possible for any GTK/GDK-based app to use:

export GDK_BACKEND=x11
# Run your app in this environment

Meanwhile, for any Qt-based app use this instead:

export QT_QPA_PLATFORM=xcb
# Run your app in this environment

In the case of dragon-drop, the GTK example works:

$ export GDK_BACKEND=x11 ; echo -n /tmp/test.png | dragon-drop --stdin
# window spawns

# In another terminal window, we can check `dragon-drop` is running as XWayland client
$ xlsclients
examplex11host  dragon-drop

Due to limitations of drag & drop functionality between Xorg/X11 and Wayland client applications, it's essential that both applications are running under the same display server backend. Either both need to be running as X11 clients, or both need to be Wayland clients.

Using the above two environment variables can help to ensure both apps are running under the same display server protocol backend, so drag & drop can work.

EDIT: This issue is related to #72 because both involve ensuring all apps are using the same display server protocol backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants