patch for iss308

Now window.bring_to_front only brings current window to front, do not change floating state