mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 01:38:02 +02:00
Delay import on demand
This commit is contained in:
@@ -3,8 +3,6 @@
|
|||||||
|
|
||||||
from typing import TYPE_CHECKING
|
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 (
|
from .base import (
|
||||||
MATCH_WINDOW_OPTION,
|
MATCH_WINDOW_OPTION,
|
||||||
ArgsType,
|
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:
|
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)
|
windows = self.windows_for_match_payload(boss, window, payload_get)
|
||||||
if windows:
|
if windows:
|
||||||
ac = payload_get('action')
|
ac = payload_get('action')
|
||||||
|
|||||||
Reference in New Issue
Block a user