Skip to content

Commit

Permalink
dbus: disallow calling BlockUnblockAnimation with trigger aliases
Browse files Browse the repository at this point in the history
Since the dbus interface was never documented, so this does not need to
go through the deprecation process.

Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Nov 14, 2024
1 parent 801553f commit d62f41b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d62f41b

Please sign in to comment.