emersion / rootston

Example compositor based on wlroots
MIT License
4 stars 3 forks source link

seat: Handle unfocusing layer-surface with no other focusable view #10

Closed dos1 closed 4 years ago

dos1 commented 5 years ago

roots_seat_set_focus would exit too early in case of view == NULL and prev_focus == NULL, not unfocusing a layer-surface that could, for instance, lose its keyboard-interactive status.

On top of that, roots_seat_set_focus_layer wouldn't even try to reset the focus in such cases.