diff --git a/bin/i3-companion b/bin/i3-companion index b878dcb..e51d720 100755 --- a/bin/i3-companion +++ b/bin/i3-companion @@ -130,8 +130,7 @@ def static(**kwargs): """Define static variables for the event handler.""" def decorator(fn): - for k, v in kwargs.items(): - setattr(fn, k, v) + fn.__dict__.update(kwargs) return fn return decorator