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
xwayland: listen to request_activate
event
#6764
Conversation
I don't understand why re-focusing is necessary here. |
Giving focus to an unmapped surface doesn't make sense, the surface isn't shown on screen. |
request_activate
event
@emersion I looked deeper into this and this seems to be proper solution. |
This looks like a proper fix, thanks for looking into it! Out of curiosity, does this remove the need to do Lines 105 to 120 in 8daa632
|
We should make sure this doesn't allow an X11 app to steal focus from a Wayland app. IIRC we already have some kind of client matching elsewhere, maybe we can do something similar? |
@Xyene Removing Lines 108 to 112 in 8daa632
Also found that in IDEA |
Thanks for testing. Yeah, I think that doesn't sound unreasonable for a debug-level message, it seems likely this issue would have been found quicker if we had it. |
I think this will do it. Doesn't limiting to the same process apply here as well similar to |
Yup, that would be nice. |
When REAPER submenu is closed `XCB_CLIENT_MESSAGE` with type `NET_ACTIVE_WINDOW` is sent to set focus to parent menu. Closes: #6324
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Fantastic! Thanks so much @yrhki |
When REAPER submenu is closed
XCB_CLIENT_MESSAGE
with typeNET_ACTIVE_WINDOW
is sent to set focus to parent menu.Closes: #6324