Skip to content

Commit 9fbd11d

Browse files
committed
feat(Window): Add HooksMixin
1 parent 744e622 commit 9fbd11d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/libtmux/window.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
ResizeAdjustmentDirection,
2323
WindowDirection,
2424
)
25+
from libtmux.hooks import HooksMixin
2526
from libtmux.neo import Obj, fetch_obj, fetch_objs
2627
from libtmux.pane import Pane
2728

@@ -38,7 +39,11 @@
3839

3940

4041
@dataclasses.dataclass()
41-
class Window(Obj, OptionsMixin):
42+
class Window(
43+
Obj,
44+
OptionsMixin,
45+
HooksMixin,
46+
):
4247
""":term:`tmux(1)` :term:`Window` [window_manual]_.
4348
4449
Holds :class:`Pane` objects.
@@ -87,6 +92,7 @@ class Window(Obj, OptionsMixin):
8792
"""
8893

8994
default_option_scope: OptionScope | None = OptionScope.Window
95+
default_hook_scope: OptionScope | None = OptionScope.Window
9096
server: Server
9197

9298
def refresh(self) -> None:

0 commit comments

Comments
 (0)