Skip to content

Commit cea1b13

Browse files
committed
feat(Window): Add HooksMixin
1 parent 3fd98ee commit cea1b13

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

@@ -49,7 +50,11 @@
4950

5051

5152
@dataclasses.dataclass()
52-
class Window(Obj, OptionsMixin):
53+
class Window(
54+
Obj,
55+
OptionsMixin,
56+
HooksMixin,
57+
):
5358
""":term:`tmux(1)` :term:`Window` [window_manual]_.
5459
5560
Holds :class:`Pane` objects.
@@ -105,6 +110,7 @@ class Window(Obj, OptionsMixin):
105110
"""
106111

107112
default_option_scope: OptionScope | None = OptionScope.Window
113+
default_hook_scope: OptionScope | None = OptionScope.Window
108114
server: Server
109115

110116
def __enter__(self) -> Self:

0 commit comments

Comments
 (0)