Add safety guards in FocusChain::move{After,Before}Window()
If the window
is the same as the reference
, the window
will be
inserted at index "-1", which is wrong.
If the window
is the same as the reference
, the window
will be
inserted at index "-1", which is wrong.