shell: Properly track the focus state surface
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 22 Jan 2014 20:25:20 +0000 (12:25 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 22 Jan 2014 20:25:20 +0000 (12:25 -0800)
commitd500bf1ac990d0d776c7a444a7478d2c9bb0e8fd
tree79976e3c819f4f6d3fd6b73d2317d8c203f82583
parent8259728a569e973a8895b919ba057740a813f52a
shell: Properly track the focus state surface

We have to move the surface destroy listener around as we track the
currently focused surface.  Introduce a helper function,
focus_state_set_focus() for this and use throughout.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=73768
desktop-shell/shell.c