cursor: ensure output focus before focusing layer
This commit is contained in:
parent
a029105f15
commit
41e52065cc
1 changed files with 1 additions and 0 deletions
|
@ -218,6 +218,7 @@ fn handleButton(listener: *wl.Listener(*wlr.Pointer.event.Button), event: *wlr.P
|
||||||
const wlr_layer_surface = wlr.LayerSurfaceV1.fromWlrSurface(surface);
|
const wlr_layer_surface = wlr.LayerSurfaceV1.fromWlrSurface(surface);
|
||||||
if (wlr_layer_surface.current.keyboard_interactive) {
|
if (wlr_layer_surface.current.keyboard_interactive) {
|
||||||
const layer_surface = @intToPtr(*LayerSurface, wlr_layer_surface.data);
|
const layer_surface = @intToPtr(*LayerSurface, wlr_layer_surface.data);
|
||||||
|
self.seat.focusOutput(layer_surface.output);
|
||||||
self.seat.setFocusRaw(.{ .layer = layer_surface });
|
self.seat.setFocusRaw(.{ .layer = layer_surface });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue