mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-24 09:38:32 +02:00
Merge branch 'LGUG2Z:master' into bar_widget_grouping
This commit is contained in:
@@ -109,10 +109,19 @@ pub fn listen_for_commands(wm: Arc<Mutex<WindowManager>>) {
|
|||||||
tracing::info!("listening on komorebi.sock");
|
tracing::info!("listening on komorebi.sock");
|
||||||
for client in listener.incoming() {
|
for client in listener.incoming() {
|
||||||
match client {
|
match client {
|
||||||
Ok(stream) => match read_commands_uds(&wm, stream) {
|
Ok(stream) => {
|
||||||
Ok(()) => {}
|
let wm_clone = wm.clone();
|
||||||
Err(error) => tracing::error!("{}", error),
|
std::thread::spawn(move || {
|
||||||
},
|
match stream.set_read_timeout(Some(Duration::from_secs(1))) {
|
||||||
|
Ok(()) => {}
|
||||||
|
Err(error) => tracing::error!("{}", error),
|
||||||
|
}
|
||||||
|
match read_commands_uds(&wm_clone, stream) {
|
||||||
|
Ok(()) => {}
|
||||||
|
Err(error) => tracing::error!("{}", error),
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
tracing::error!("{}", error);
|
tracing::error!("{}", error);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user