refocus old client

When a layer surface is destroyed focus should be returned to the last
client. Luckily if there are multiple overlays the previous overlay
still gets focused.
このコミットが含まれているのは:
Guido Cella 2020-09-04 17:21:48 +02:00
コミット 068352e888
1個のファイルの変更1行の追加3行の削除

4
dwl.c
ファイルの表示

@ -2092,9 +2092,7 @@ unmaplayersurface(LayerSurface *layersurface)
{
if (layersurface->layer_surface->surface ==
seat->keyboard_state.focused_surface)
wlr_seat_keyboard_notify_clear_focus(seat);
/* XXX recheck keyboard focus */
focusclient(NULL, selclient(), 1);
motionnotify(0); // XXX why doesn't this work?
}