Skip to content

Commit 9d3aa67

Browse files
committed
feat(Window): Add HooksMixin
1 parent afeed63 commit 9d3aa67

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

@@ -47,7 +48,11 @@
4748

4849

4950
@dataclasses.dataclass()
50-
class Window(Obj, OptionsMixin):
51+
class Window(
52+
Obj,
53+
OptionsMixin,
54+
HooksMixin,
55+
):
5156
""":term:`tmux(1)` :term:`Window` [window_manual]_.
5257
5358
Holds :class:`Pane` objects.
@@ -103,6 +108,7 @@ class Window(Obj, OptionsMixin):
103108
"""
104109

105110
default_option_scope: OptionScope | None = OptionScope.Window
111+
default_hook_scope: OptionScope | None = OptionScope.Window
106112
server: Server
107113

108114
def __enter__(self) -> Self:

0 commit comments

Comments
 (0)