1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 23:01:04 +02:00

fix(keyboard): panic when layout update channel lags behind (#869)

Fixes #866
This commit is contained in:
quietvoid 2025-02-16 18:01:21 -05:00 committed by GitHub
parent 452e85f5f6
commit 551e1ce691
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 5 deletions

View file

@ -25,7 +25,7 @@ pub struct Client {
impl Client {
pub(crate) fn new() -> Self {
let (workspace_tx, workspace_rx) = channel(16);
let (keyboard_layout_tx, keyboard_layout_rx) = channel(4);
let (keyboard_layout_tx, keyboard_layout_rx) = channel(16);
let instance = Self {
workspace_tx,

View file

@ -166,7 +166,7 @@ impl KeyboardLayoutClient for Client {
}
fn subscribe(&self) -> Receiver<KeyboardLayoutUpdate> {
let (tx, rx) = channel(4);
let (tx, rx) = channel(16);
let client = self.connection().clone();