refactor: set dispatch to None for tiling and workspaces

This commit is contained in:
Ashley Wulber 2024-03-06 11:17:54 -05:00 committed by Ashley Wulber
parent bd1f7d6064
commit ebca17aba7
2 changed files with 2 additions and 6 deletions

View file

@ -114,9 +114,7 @@ pub fn spawn_workspaces(tx: mpsc::Sender<TilingState>) -> SyncSender<TilingState
})
.unwrap();
while state.running {
event_loop
.dispatch(Duration::from_millis(16), &mut state)
.unwrap();
event_loop.dispatch(None, &mut state).unwrap();
}
});
} else {

View file

@ -168,9 +168,7 @@ pub fn spawn_workspaces(tx: mpsc::Sender<WorkspaceList>) -> SyncSender<Workspace
})
.unwrap();
while state.running {
event_loop
.dispatch(Duration::from_millis(16), &mut state)
.unwrap();
event_loop.dispatch(None, &mut state).unwrap();
}
});
} else {