Compare commits

..

1 Commits

Author SHA1 Message Date
Ferdinand Schober
133e1ae81d hotfix: plasma 6.7 reporting Barrier ID 1
Still not 100% sure of the root cause, but it looks
like plasma is reporting 1 as the barrier id in all cases...
2026-06-21 19:06:25 +02:00

View File

@@ -413,7 +413,15 @@ async fn do_capture_session(
};
// find client corresponding to barrier
let pos = *pos_for_barrier_id.get(&barrier_id).expect("invalid barrier id");
let pos = match pos_for_barrier_id.get(&barrier_id) {
Some(id) => *id,
None => {
log::warn!("INVALID BARRIER ID: Id {barrier_id} does not exist!");
let id = find_corresponding_client(&barriers, activated.cursor_position().expect("no cursor position reported by compositor"));
let pos = *pos_for_barrier_id.get(&id).expect("invalid barrier id");
pos
},
};
current_pos.replace(Some(pos));
// client entered => send event