diff --git a/pinnacle_api_lua/init.lua b/pinnacle_api_lua/init.lua index 1d489b7..cc58068 100644 --- a/pinnacle_api_lua/init.lua +++ b/pinnacle_api_lua/init.lua @@ -84,4 +84,8 @@ while true do local tb = msgpack.decode(msg_bytes) print(tb) + + if tb.CallCallback then + CallbackTable[tb.CallCallback]() + end end diff --git a/src/api.rs b/src/api.rs index d78cb80..0a26821 100644 --- a/src/api.rs +++ b/src/api.rs @@ -57,7 +57,7 @@ impl PinnacleSocketSource { } } - let listener = UnixListener::bind(SOCKET_PATH)?; + let listener = UnixListener::bind(socket_path)?; listener.set_nonblocking(true)?; let socket = Generic::new(listener, Interest::READ, Mode::Level); diff --git a/src/state.rs b/src/state.rs index e5eeef2..f16f534 100644 --- a/src/state.rs +++ b/src/state.rs @@ -5,7 +5,7 @@ use std::{ sync::Arc, }; -use crate::api::{msg::Msg, PinnacleSocketSource, PinnacleStreamSource}; +use crate::api::{msg::Msg, PinnacleSocketSource}; use smithay::{ backend::renderer::element::RenderElementStates, desktop::{