-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
wl_data_source.cancelled not sent when dropping outside any surface #3932
Comments
WAYLAND_DEBUG log: https://gist.github.com/nickdiego/5becea1a865a96d56a3b14ca1381c39e Last event is
It should be |
Don't the following two lines indicate that the offer was accepted?
|
|
Eh, you're right, my bad. |
Eh, no, sorry - |
Additionally, I've noticed some misbehavior regarding enter/leave events. It seems like the client just receives the leave event once the pointer enters another surface (perhaps some tiling-mode assumption is being made at server side?). |
Looks like |
Instead of handling presses and releases on empty workspaces as setting focus to the workspace, handle releases by notifying the seat of a pointer action. This way DnDs are correctly released if the button is released over an empty workspace. Fixes swaywm#3932
Instead of handling presses and releases on empty workspaces as setting focus to the workspace, handle releases by notifying the seat of a pointer action. This way DnDs are correctly released if the button is released over an empty workspace. Fixes swaywm#3932
Instead of handling presses and releases on empty workspaces as setting focus to the workspace, handle releases by notifying the seat of a pointer action. This way DnDs are correctly released if the button is released over an empty workspace. Fixes swaywm#3932
@Emantor Does this also fix the issue I describe in the comment above ? Or maybe I should file a separate issue for it? Anyways, thanks for looking into it. |
Not sure, haven't looked into it yet. Would be nice if you could test #5200. |
Just gave it a try. This is what I observed:
Let me know if you need further info. |
I think this effect is performed by GNOME Shell itself.
Maybe we don't send |
@emersion Oh, that just reminded me this ^ |
Instead of handling presses and releases on empty workspaces as setting focus to the workspace, handle releases by notifying the seat of a pointer action. This way DnDs are correctly released if the button is released over an empty workspace. This is achieved by removing the early return and letting the handle_button() call seat_pointer_notify_button() at the very end. Fixes swaywm#3932
Instead of handling presses and releases on empty workspaces as setting focus to the workspace, handle releases by notifying the seat of a pointer action. This way DnDs are correctly released if the button is released over an empty workspace. This is achieved by removing the early return and letting the handle_button() call seat_pointer_notify_button() at the very end. Fixes swaywm#3932
Instead of handling presses and releases on empty workspaces as setting focus to the workspace, handle releases by notifying the seat of a pointer action. This way DnDs are correctly released if the button is released over an empty workspace. This is achieved by removing the early return and letting the handle_button() call seat_pointer_notify_button() at the very end. Fixes #3932
Thanks for fixing this. Just opened #5220 to track the aforementioned wl_data_device::leave events issue. |
Sway Version: 1.0
Reproduction Steps:
The text was updated successfully, but these errors were encountered: