]> git.mdlowis.com Git - proto/labwc.git/commit
xdg-activation: temporarily disable source surface verification
authortokyo4j <hrak1529@gmail.com>
Fri, 9 Aug 2024 06:56:26 +0000 (15:56 +0900)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 11 Aug 2024 07:33:26 +0000 (09:33 +0200)
commitde38c771fc4d0a9c5073e40719751b0badc6a60f
treef6e7c4d605087d33e7bf717eb5a2221c39f7d6ae
parent72df8fe73c9c42cd0d7362dbf87d7956ed78a635
xdg-activation: temporarily disable source surface verification

71451173 validates the xdg-activation token more strictly by verifying
the source surface attached to the token. That  improves the security by
preventing arbitrary focus-stealing.

However, not all clients attach a right source surface to the token or
use the received token for activation. For example, when a notification
client requests thunderbird to activate its window, thunderbird doesn't
use the token passed by the notification client and instead use their own
token, thus the activation is rejected as the surface attached to the
token is not focused.

We will add options to configure the policy for activation requests or
implement urgency hint in some way in the future and reland the source
surface verification.
src/xdg.c