diff options
author | Aylur <[email protected]> | 2024-06-07 13:49:14 +0200 |
---|---|---|
committer | Aylur <[email protected]> | 2024-06-07 13:49:14 +0200 |
commit | c3c294c2c08aaf35a25684b5dbc0d332b13ead44 (patch) | |
tree | ac7b7d44bb1d614d8bb6b267232d30f76bb1f98b | |
parent | be3623af5e3dc23445037d5d3c163accd7b5a2af (diff) |
fix: client behaviour
-rw-r--r-- | gjs/src/application.ts | 2 | ||||
-rw-r--r-- | lua/astal/application.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gjs/src/application.ts b/gjs/src/application.ts index 1141ad7..4150937 100644 --- a/gjs/src/application.ts +++ b/gjs/src/application.ts @@ -65,7 +65,7 @@ class AstalJS extends Astal.Application { this.requestHandler = requestHandler this.connect("activate", () => main?.(...programArgs)) if (!this.acquire_socket()) - client(msg => this.message(msg)!, ...programArgs) + return client(msg => this.message(msg)!, ...programArgs) if (css) this.apply_css(css, false) diff --git a/lua/astal/application.lua b/lua/astal/application.lua index f738c09..f1b1ad3 100644 --- a/lua/astal/application.lua +++ b/lua/astal/application.lua @@ -74,7 +74,7 @@ function Astal.Application:start(config) end if not app:acquire_socket() then - config.client(function(msg) + return config.client(function(msg) return app:message(msg) end, table.unpack(arg)) end |