Recover Rime faults, persist window modes and fix GPU allocation

This commit is contained in:
aria committed 2026-10-28 02:32:19 +09:00
1 parent 8e9a5838ab
commit 6f34fd080f
27 files changed
+1260 -34

No files matched your search

+11
View File
@@ -573,6 +573,8 @@ pub struct Ferese {
pub idle_notifier_state: IdleNotifierState<Self>,
pub input_method_manager_state: InputMethodManagerState,
pub virtual_keyboard_manager_state: VirtualKeyboardManagerState,
pub virtual_pointer_manager_state:
Option<smithay::wayland::virtual_pointer::VirtualPointerManagerState>,
pub keyboard_shortcuts_inhibit_state: KeyboardShortcutsInhibitState,
pub output_manager_state: OutputManagerState,
pub pointer_constraints_state: PointerConstraintsState,
@@ -680,6 +682,14 @@ impl Ferese {
VirtualKeyboardManagerState::new::<Self, _>(&display_handle, move |_| {
input_method_enabled
});
let virtual_pointer_manager_state = (std::env::var_os("FERESE_ENABLE_TEST_POINTER")
.is_some_and(|value| value == "1"))
.then(|| {
smithay::wayland::virtual_pointer::VirtualPointerManagerState::new::<Self, _>(
&display_handle,
|_| true,
)
});
let keyboard_shortcuts_inhibit_state =
KeyboardShortcutsInhibitState::new::<Self>(&display_handle);
let shortcut_inhibit_enabled =
@@ -900,6 +910,7 @@ impl Ferese {
idle_notifier_state,
input_method_manager_state,
virtual_keyboard_manager_state,
virtual_pointer_manager_state,
keyboard_shortcuts_inhibit_state,
output_manager_state,
pointer_constraints_state,