Set the correct window as modified when using an input plugin on OS X.