1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 22:33:52 +03:00
wezterm/wezterm-mux-server-impl/src
Wez Furlong 2b298f5f96
mux: pass gui window position through from new mux window
Threads through a GuiPosition from mux window creation to allow it to be
used when the corresponding gui window is created.

SpawnCommand now has an optional position field to use for that purpose.

```lua
wezterm.mux.spawn_window {
  position = {
    x = 10,
    y = 300,
    -- Optional origin to use for x and y.
    -- Possible values:
    -- * "ScreenCoordinateSystem" (this is the default)
    -- * "MainScreen" (the primary or main screen)
    -- * "ActiveScreen" (whichever screen hosts the active/focused window)
    -- * {Named="HDMI-1"} - uses a screen by name. See wezterm.gui.screens()
    -- origin = "ScreenCoordinateSystem"
  },
}
```

refs: https://github.com/wez/wezterm/issues/2976
2023-02-05 21:43:37 -07:00
..
dispatch.rs mux: rename Mux::get() -> try_get(), add "infallible" Mux::get() 2022-12-19 11:55:35 -07:00
lib.rs mux: factor out server bits to helper crate 2020-12-29 15:25:15 -08:00
local.rs reduce log level of some diagnostics printed on startup 2022-04-09 22:19:22 -07:00
pki.rs mux: factor out server bits to helper crate 2020-12-29 15:25:15 -08:00
sessionhandler.rs mux: pass gui window position through from new mux window 2023-02-05 21:43:37 -07:00