weston/desktop-shell
Neil Roberts 4237f50e11 Reset focus on unknown seats when restoring focus state
The focus_state list on a workspace only contains entries for seats
which have a keyboard focus on that workspace. For workspaces that
have no surfaces the list will be empty. That means that when a
workspace with no surfaces is switched to it would previously leave
the keyboard focus unaffected and you could still type in the surface
on the old workspace.

This patch makes it instead reset the keyboard focus to NULL for seats
without a focus_state. It does this by temporarily stealing the
compositor's list of seats while it iterates the focus_states. After
all of the focus states have been processed any seats remaining in
this temporary list have their focus reset.

https://bugs.freedesktop.org/show_bug.cgi?id=73905
2014-04-10 09:32:09 -07:00
..
exposay.c exposay: avoid needlessly activating the active view 2014-02-18 14:07:08 -08:00
input-panel.c shell: position input panel layer above fullscreen layer 2014-04-02 10:35:26 -07:00
shell.c Reset focus on unknown seats when restoring focus state 2014-04-10 09:32:09 -07:00
shell.h compositor: implement xdg_surface_set_minimized() 2014-04-02 10:27:13 -07:00