aboutsummaryrefslogtreecommitdiff
path: root/AnyEvent-I3/Changes
diff options
context:
space:
mode:
authorWesley Schwengle <wesleys@opperschaap.net>2024-04-09 02:28:40 -0400
committerGitHub <noreply@github.com>2024-04-09 08:28:40 +0200
commitd91597b1c1a51c41a1fc65c3ad8760b786522d83 (patch)
treee23156b7005ae113b949c48176bb2f171ec25256 /AnyEvent-I3/Changes
parent47cab33aa8b3c8b47e34de6148440a1bc30a2297 (diff)
downloadi3-d91597b1c1a51c41a1fc65c3ad8760b786522d83.tar.gz
i3-d91597b1c1a51c41a1fc65c3ad8760b786522d83.zip
Check if subscribe event type is supported in AnyEvent::I3 (#5988)
Add simple `if exists' construct in the subscribe function. This prevents a somewhat cryptic warnings such as these: Use of uninitialized value $type in hash element at /usr/share/perl5/AnyEvent/I3.pm line 309. We still warn the user, but it is much clearer as to what the cause is. It now shows something like this: Could not subscribe to event type 'foo'. Supported events are _error barconfig_update binding mode output shutdown tick window workspace Signed-off-by: Wesley Schwengle <wesleys@opperschaap.net>
Diffstat (limited to 'AnyEvent-I3/Changes')
0 files changed, 0 insertions, 0 deletions