Changelog 2023-08-05 getForegroundWindow now returns ("", None) if no window is selected Linux only. In windows, I haven't found a situation where no window is selected add spec test Function return types are in the spec test