Skip to content

Commit

Permalink
Merge pull request #8 from WayfireWM/allow-signals-as-conditions
Browse files Browse the repository at this point in the history
condition_parser: handle SIGNAL type as an identifier
  • Loading branch information
erikvanhamme authored Dec 20, 2023
2 parents 15f8e16 + 221cfcf commit 08553c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wayfire/parser/condition_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void condition_parser_t::_factor(lexer_t &lexer)
{
_symbol = lexer.parse_symbol();

if (_symbol.type == symbol_t::type_t::IDENTIFIER)
if (_symbol.type == symbol_t::type_t::IDENTIFIER || _symbol.type == symbol_t::type_t::SIGNAL)
{
// Identifier.
auto identifier = get_string(_symbol.value);
Expand Down

0 comments on commit 08553c4

Please sign in to comment.