diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-10 01:20:16 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-10 01:21:01 +0900 |
| commit | 4246256d781f169b86f76d8654f6df5ffc6ddae6 (patch) | |
| tree | 71f05518ff960873661788c3dcf581eed314322b /internal/app/spwayland.go | |
| parent | a941ac025f9f3a942cab04a6f2447e4cab0e616c (diff) | |
internal/app: hold config address in state
This can be removed eventually as it is barely used.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/spwayland.go')
| -rw-r--r-- | internal/app/spwayland.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/app/spwayland.go b/internal/app/spwayland.go index efbd8afc..104f0a64 100644 --- a/internal/app/spwayland.go +++ b/internal/app/spwayland.go @@ -17,7 +17,7 @@ type spWaylandOp struct { SocketPath *check.Absolute } -func (s *spWaylandOp) toSystem(state *outcomeStateSys, config *hst.Config) error { +func (s *spWaylandOp) toSystem(state *outcomeStateSys) error { // outer wayland socket (usually `/run/user/%d/wayland-%d`) var socketPath *check.Absolute if name, ok := state.k.lookupEnv(wayland.WaylandDisplay); !ok { @@ -29,8 +29,8 @@ func (s *spWaylandOp) toSystem(state *outcomeStateSys, config *hst.Config) error socketPath = a } - if !config.DirectWayland { // set up security-context-v1 - appID := config.ID + if !state.config.DirectWayland { // set up security-context-v1 + appID := state.config.ID if appID == "" { // use instance ID in case app id is not set appID = "app.hakurei." + state.id.String() |
