Doesn't window.blur() in system app fix this? And actively ignore keyboard_manager event in resize_handler in window manager.