Model lock ownership explicitly and allow protected crash recovery

This commit is contained in:
Samuel Onoja committed 2026-10-02 08:48:01 +01:00
1 parent 570984a39b
commit 8ad5293178
22 files changed
+264 -80

No files matched your search

+3 -3
View File
@@ -28,7 +28,7 @@ impl Ferese {
}
pub(crate) fn focus_last_window(&mut self) {
if self.session_lock.active || self.input_capture.captures(1) {
if self.session_lock.active() || self.input_capture.captures(1) {
return;
}
self.cancel_focus_cycle();
@@ -43,7 +43,7 @@ impl Ferese {
}
pub(crate) fn cycle_focus(&mut self, reverse: bool, preview: bool) {
if self.session_lock.active || self.input_capture.captures(1) {
if self.session_lock.active() || self.input_capture.captures(1) {
return;
}
let available = self.focus_candidates();
@@ -85,7 +85,7 @@ impl Ferese {
let Some(mut cycle) = self.focus_cycle.take() else {
return;
};
if !self.session_lock.active
if !self.session_lock.active()
&& !self.input_capture.captures(1)
&& let Some(id) = cycle.reconcile(&self.focus_candidates())
{