forked from mirror/dwl
simplify focus leave condition
This commit is contained in:
parent
35b93669f1
commit
5dc9460044
1 changed files with 2 additions and 7 deletions
9
dwl.c
9
dwl.c
|
@ -2090,13 +2090,8 @@ toggleview(const Arg *arg)
|
||||||
void
|
void
|
||||||
unmaplayersurface(LayerSurface *layersurface)
|
unmaplayersurface(LayerSurface *layersurface)
|
||||||
{
|
{
|
||||||
if (
|
if (layersurface->layer_surface->surface ==
|
||||||
layersurface->layer_surface->current.keyboard_interactive
|
seat->keyboard_state.focused_surface)
|
||||||
&& seat->keyboard_state.focused_surface
|
|
||||||
&& wlr_surface_is_layer_surface(seat->keyboard_state.focused_surface)
|
|
||||||
&& wlr_layer_surface_v1_from_wlr_surface(seat->keyboard_state.focused_surface)
|
|
||||||
== layersurface->layer_surface
|
|
||||||
)
|
|
||||||
wlr_seat_keyboard_notify_clear_focus(seat);
|
wlr_seat_keyboard_notify_clear_focus(seat);
|
||||||
|
|
||||||
/* XXX recheck keyboard focus */
|
/* XXX recheck keyboard focus */
|
||||||
|
|
Loading…
Reference in a new issue