Fixed stuff

This commit is contained in:
Seaotatop 2023-06-17 19:01:26 -05:00
parent 1a7b98a666
commit d1bfb48885
3 changed files with 6 additions and 2 deletions

View file

@ -84,4 +84,8 @@ while true do
local tb = msgpack.decode(msg_bytes) local tb = msgpack.decode(msg_bytes)
print(tb) print(tb)
if tb.CallCallback then
CallbackTable[tb.CallCallback]()
end
end end

View file

@ -57,7 +57,7 @@ impl PinnacleSocketSource {
} }
} }
let listener = UnixListener::bind(SOCKET_PATH)?; let listener = UnixListener::bind(socket_path)?;
listener.set_nonblocking(true)?; listener.set_nonblocking(true)?;
let socket = Generic::new(listener, Interest::READ, Mode::Level); let socket = Generic::new(listener, Interest::READ, Mode::Level);

View file

@ -5,7 +5,7 @@ use std::{
sync::Arc, sync::Arc,
}; };
use crate::api::{msg::Msg, PinnacleSocketSource, PinnacleStreamSource}; use crate::api::{msg::Msg, PinnacleSocketSource};
use smithay::{ use smithay::{
backend::renderer::element::RenderElementStates, backend::renderer::element::RenderElementStates,
desktop::{ desktop::{