private void SceneManager_activeSceneChanged(Scene arg0, Scene arg1) { try { var Winhdl = WindowManager.FindWindow(null, "Beat Saber"); if (Winhdl == IntPtr.Zero) { return; } WindowManager.ActiveWindow(Winhdl); } catch (Exception e) { Logger.log.Error(e); } }