1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-25 14:06:08 -05:00

dbus: disallow calling BlockUnblockAnimation with trigger aliases

Since the dbus interface was never documented, so this does not need to
go through the deprecation process.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-11-14 15:38:34 +00:00
parent 801553f1d5
commit d62f41b58d
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -1426,7 +1426,7 @@ cdbus_process_windows(DBusConnection *conn, DBusMessage *msg, void *ud) {
goto finished;
}
auto trigger = parse_animation_trigger(trigger_str);
if (trigger == ANIMATION_TRIGGER_INVALID) {
if (trigger >= ANIMATION_TRIGGER_INVALID) {
dbus_set_error(&err, CDBUS_ERROR_BADTGT, CDBUS_ERROR_BADTGT_S,
trigger_str);
goto finished;