diff options
author | Guido Cella <guidocella91@gmail.com> | 2020-09-04 16:37:22 +0200 |
---|---|---|
committer | Guido Cella <guidocella91@gmail.com> | 2020-09-04 16:42:14 +0200 |
commit | 5dc94600446c8e6847aed388a87a5bd2aecaacac (patch) | |
tree | e3cc23efc6ab32a98ac7b84ed15f88b58bb0058a | |
parent | 35b93669f18a2e5ff414b2744e5d2013ad89553e (diff) |
simplify focus leave condition
-rw-r--r-- | dwl.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -2090,13 +2090,8 @@ toggleview(const Arg *arg) void unmaplayersurface(LayerSurface *layersurface) { - if ( - layersurface->layer_surface->current.keyboard_interactive - && 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 - ) + if (layersurface->layer_surface->surface == + seat->keyboard_state.focused_surface) wlr_seat_keyboard_notify_clear_focus(seat); /* XXX recheck keyboard focus */ |