feat: integrate numeric workspaces

This commit is contained in:
Samuel Onoja committed 2026-09-24 11:08:42 +01:00
1 parent 19abb033c5
commit 3d8c7b0c4f
4 files changed
+187 -16

No files matched your search

+6
View File
@@ -48,6 +48,12 @@ impl XdgActivationHandler for Ferese {
};
self.focused_window = self.window_ids.get(&window).copied();
if let Some(focused) = self.focused_window
&& let Err(error) = self.workspaces.focus_window(focused)
{
tracing::error!(%error, ?focused, "failed to update workspace focus");
return;
}
self.space.raise_element(&window, true);
let keyboard = self.seat.get_keyboard().expect("seat has a keyboard");
keyboard.set_focus(self, Some(surface), SERIAL_COUNTER.next_serial());