Skip to content

Commit

Permalink
fix: Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
workgroupengineering committed Mar 22, 2024
1 parent 1f926ac commit d697a72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void Initialize(IScreenInfoProvider screen, Action<RawInputEventArgs> onI
var options = new LibInputBackendOptions()
{
LibInputContext = ctx,
Events = _options is null
Events = _options?.Events is null
? Directory.GetFiles("/dev/input", "event*")
: _options.Events,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ public sealed record class LibInputBackendOptions
/// <summary>
/// List Events of events handler to monitoring eg: /dev/eventX.
/// </summary>
public IReadOnlyList<string> Events { get; init; } = Array.Empty<string>();
public IReadOnlyList<string> Events { get; init; } = null;
}

0 comments on commit d697a72

Please sign in to comment.