Bugfix: No more active window after repositioning windows.

When subsequently a non-taskbar window is shown after no more window is
active, an incorrect window is shown on the taskbar.
http://stackoverflow.com/a/16942857/590790