views shouldn't be focusing themselves, that's the job of the focus...

function
This commit is contained in:
Squibid 2026-02-07 11:35:31 -05:00
parent f639a2f94e
commit 6b4e6dce6d
Signed by: squibid
GPG key ID: BECE5684D3C4005D

View file

@ -147,13 +147,6 @@ fn handleMap(listener: *wl.Listener(void)) void {
view.xdg_toplevel.events.set_title.add(&view.set_title); view.xdg_toplevel.events.set_title.add(&view.set_title);
// view.xdg_toplevel.events.set_parent.add(&view.set_parent); // view.xdg_toplevel.events.set_parent.add(&view.set_parent);
const xdg_surface = view.xdg_toplevel.base;
server.seat.wlr_seat.keyboardNotifyEnter(
xdg_surface.surface,
&server.seat.keyboard_group.wlr_group.keyboard.keycodes,
&server.seat.keyboard_group.wlr_group.keyboard.modifiers
);
view.mapped = true; view.mapped = true;
server.events.exec("ViewMapPost", .{view.id}); server.events.exec("ViewMapPost", .{view.id});
} }