Function OSSingleton.isWindowFocused

Returns true if the window is currently focused. Note: Only implemented on desktop platforms. On other platforms, it will always return true.

bool isWindowFocused() nothrow @nogc const;