]> git.mdlowis.com Git - proto/labwc.git/commit
src/xdg.c: verify source surface for xdg_activation request
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 10 Jul 2024 18:22:52 +0000 (20:22 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 14 Jul 2024 20:11:12 +0000 (22:11 +0200)
commit714511736ba2357d238e7d7de321ccc8d948fa97
tree9d97557e4ac9eb199fe5c41a5515d598b3123b00
parente9fdd1f4938eacd8bdec3a9b0e0b840b4e3d7920
src/xdg.c: verify source surface for xdg_activation request

wlroots < 0.17 didn't allow to reliably check the source surface of
an xdg activation request as it reset the surface to NULL when it
was destroyed before the token was used. This happens regularly for
notifications for example. Thus we treated the token as valid even
without checking for the source surface.

wlroots 0.17 added a new_token signal where we can attach information
to the existing token which we can then use when evaluating activation
requests. This patch implements that check.
include/labwc.h
src/xdg.c