mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-21 06:59:44 -05:00
xdg-activation: accept pointer focus for new tokens
This patch allows surfaces without keyboard focus
but with pointer focus to receive valid tokens.
This can be relevant for applications using an older version of
the layershell protocol which only provided the choice between
no keyboard focus and exclusive keyboard focus.
(cherry picked from commit f6008ffff4)
This commit is contained in:
parent
037e3c284a
commit
419e55ffef
1 changed files with 3 additions and 2 deletions
|
|
@ -115,9 +115,10 @@ static void token_handle_commit(struct wl_client *client,
|
|||
}
|
||||
|
||||
if (token->surface != NULL &&
|
||||
token->surface != token->seat->keyboard_state.focused_surface) {
|
||||
token->surface != token->seat->keyboard_state.focused_surface &&
|
||||
token->surface != token->seat->pointer_state.focused_surface) {
|
||||
wlr_log(WLR_DEBUG, "Rejecting token commit request: "
|
||||
"surface doesn't have keyboard focus");
|
||||
"surface doesn't have focus");
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue