Fix unit test
patch for iss300

Change the window's layout level behavior
When focusing on a window, bring it to front.
Floating(but not maximized or fullscreened) windows always on top.

Closes #300
Closes #302