-
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
Drag & drop doesn't focus target window #5116
Labels
bug
Not working as intended
Comments
I've been able to reproduce this on sway/wlroots master (currently 99897a6). The window borders change colors as if the window should have focus, but keyboard focus is not passed on drop, and requires re-entering the surface to trigger. The pointer enter event doesn't fire either, until the next mouse movement (but does not require re-entering). |
kennylevinsen
added a commit
to kennylevinsen/sway
that referenced
this issue
Jun 28, 2020
wlr_drag installs grabs for the full duration of the drag, leading to the drag target not being focused when the drag ends. This leads to unexpected focus behavior, especially for the keyboard which requires toggling focus away and back to set. We can only fix the focus once the grabs are released, so focus the drag target when the wlr_drag destroy event is received. Closes: swaywm#5116
kennylevinsen
added a commit
to kennylevinsen/sway
that referenced
this issue
Jun 28, 2020
wlr_drag installs grabs for the full duration of the drag, leading to the drag target not being focused when the drag ends. This leads to unexpected focus behavior, especially for the keyboard which requires toggling focus away and back to set. We can only fix the focus once the grabs are released, so refocus the seat when the wlr_drag destroy event is received. Closes: swaywm#5116
emersion
pushed a commit
that referenced
this issue
Jun 30, 2020
wlr_drag installs grabs for the full duration of the drag, leading to the drag target not being focused when the drag ends. This leads to unexpected focus behavior, especially for the keyboard which requires toggling focus away and back to set. We can only fix the focus once the grabs are released, so refocus the seat when the wlr_drag destroy event is received. Closes: #5116
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I drag something (eg: an image) between two windows (A->B), once I drop/release, my mouse cursor is hovering on window B, but that window doesn't have focus. I need to move the mouse out and back again.
Oddly though, the source window doesn't seem to have the focus either.
I've verified this by drag-and-dropping...
nemo
totelegram
.nemo
tofirefox
.These are all wayland-native apps.
I'm running sway 1.4.
The text was updated successfully, but these errors were encountered: