mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 02:17:03 +00:00
Delay import on demand
This commit is contained in:
parent
4c8f9f9e26
commit
a47babc87d
1 changed files with 7 additions and 2 deletions
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from kitty.fast_data_types import get_os_window_size, layer_shell_config_for_os_window, set_layer_shell_config, toggle_fullscreen, toggle_os_window_visibility
|
||||
|
||||
from .base import (
|
||||
MATCH_WINDOW_OPTION,
|
||||
ArgsType,
|
||||
|
|
@ -98,6 +96,13 @@ using this option means that you will not be notified of failures.
|
|||
}
|
||||
|
||||
def response_from_kitty(self, boss: Boss, window: Window | None, payload_get: PayloadGetType) -> ResponseType:
|
||||
from kitty.fast_data_types import (
|
||||
get_os_window_size,
|
||||
layer_shell_config_for_os_window,
|
||||
set_layer_shell_config,
|
||||
toggle_fullscreen,
|
||||
toggle_os_window_visibility,
|
||||
)
|
||||
windows = self.windows_for_match_payload(boss, window, payload_get)
|
||||
if windows:
|
||||
ac = payload_get('action')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue