mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Add a note about X11 specificity of preshow_callback
This commit is contained in:
parent
3e8abaac58
commit
57ba0f4d87
1 changed files with 4 additions and 0 deletions
|
|
@ -327,6 +327,10 @@ def end_startup_notification(ctx: Optional['StartupCtx']) -> None:
|
|||
|
||||
class startup_notification_handler:
|
||||
|
||||
# WARNING: This only works on X11 on other platforms extra_callback will be called
|
||||
# after the window is shown, not before, as they do not do two stage window
|
||||
# creation.
|
||||
|
||||
def __init__(self, do_notify: bool = True, startup_id: Optional[str] = None, extra_callback: Optional[Callable[[int], None]] = None):
|
||||
self.do_notify = do_notify
|
||||
self.startup_id = startup_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue