cursor: ensure output focus before focusing layer

This commit is contained in:
Isaac Freund 2021-01-08 22:27:52 +01:00
parent a029105f15
commit 41e52065cc
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11

View file

@ -218,6 +218,7 @@ fn handleButton(listener: *wl.Listener(*wlr.Pointer.event.Button), event: *wlr.P
const wlr_layer_surface = wlr.LayerSurfaceV1.fromWlrSurface(surface);
if (wlr_layer_surface.current.keyboard_interactive) {
const layer_surface = @intToPtr(*LayerSurface, wlr_layer_surface.data);
self.seat.focusOutput(layer_surface.output);
self.seat.setFocusRaw(.{ .layer = layer_surface });
}
}