mirror of
https://github.com/yshui/picom.git
synced 2024-11-18 13:55:36 -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:
parent
801553f1d5
commit
d62f41b58d
1 changed files with 1 additions and 1 deletions
|
@ -1426,7 +1426,7 @@ cdbus_process_windows(DBusConnection *conn, DBusMessage *msg, void *ud) {
|
||||||
goto finished;
|
goto finished;
|
||||||
}
|
}
|
||||||
auto trigger = parse_animation_trigger(trigger_str);
|
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,
|
dbus_set_error(&err, CDBUS_ERROR_BADTGT, CDBUS_ERROR_BADTGT_S,
|
||||||
trigger_str);
|
trigger_str);
|
||||||
goto finished;
|
goto finished;
|
||||||
|
|
Loading…
Reference in a new issue