fix(regression): GTK refactor causing updates to be missed
Regression introduced by recent GTK refactor. The `glib_recv` macros previously using the passed in expression as the receiver, which was causing a new receiver to be created *every* time an event was received. This caused some peculiar behaviours where some events just never got through if sent too close to each other. This was most obvious in the `workspaces` module. Fixes #381
This commit is contained in:
@@ -47,7 +47,7 @@ impl CustomWidget for ProgressWidget {
|
||||
let script = Script::from(value);
|
||||
let progress = progress.clone();
|
||||
|
||||
let (tx, mut rx) = mpsc::channel(128);
|
||||
let (tx, rx) = mpsc::channel(128);
|
||||
|
||||
spawn(async move {
|
||||
script
|
||||
|
||||
Reference in New Issue
Block a user