Bug WindowSkin Texture Bleeding

This is related to other graphical issues that have been brought up. But the proposed solutions so far don't fix this particular problem, so I decided to make a separate topic.
It's easiest to see on the battle screen's Actor Status Window which doesn't have the boarder frame. The window back is stretched to fit the window dimensions, but you can see a fuzzy edge on the right edge. This is part of the boarder frame texture bleeding over.
[IMG]https://assets-global.website-files.com/5efc0159f9a97ba05a8b2902/5f72f9ccb86694f5f728d17b_Project5%202020_06_29%2015_42_59.jpg[/IMG]

1 solution I found is to set ._smooth to false in rmmz_core.js
This in turn switches PIXI.SCALE_MODES from LINEAR to NEAREST.
Using NEAREST stops the bleeding.

Although, most PIXI articles about texture bleeding suggest just padding the textures with transparent pixels. That would require changing the Windowskin format.
EDIT #2:
A simpler fix:
Code:
(function($) {  
//=============================================================================
// ** Window_Base
//-----------------------------------------------------------------------------
// The game object class for the party. Information such as gold and items is
// included.
//=============================================================================
// Alias Listing
//=============================================================================
$.Window__onWindowskinLoad = Window.prototype._onWindowskinLoad;
//=============================================================================
// * [On Load] Windowskin Texture
//=============================================================================
Window.prototype._onWindowskinLoad = function() {
  // If Windowskin exists remove smooth effect
  if (this._windowskin) { this._windowskin.smooth = false; }
  // Run Original Function
  $.Window__onWindowskinLoad.call(this);
};

})(this);

EDIT #1:

OK, I will need help testing this but from what I can tell it is now fixed @coyotecraft if you have time!


1610182240762.png


With Test Fix:
1610182256321.png




************

Unlocking this thread and will share some interesting findings and maybe a fix soon.

Upon further investigation, it seems that the windowskin BG is not a tiling sprite. And the reason Ojima-san did it this way is because it will cause an error if you try to recolor it or add tones so I'll see if I can fix it that still supports color hue.

The sprite is stretched hence the "bleeding" / "blurring effect" at the edge of the window. It seems to be related to this problem:

The problem is related to this and should be fixable.

Code:
Window.prototype._createBackSprite = function() {
    this._backSprite = new Sprite();
    this._backSprite.addChild(new TilingSprite());
    this._container.addChild(this._backSprite);
};

Original thread: https://forums.rpgmakerweb.com/threads/windowskin-texture-bleeding.129199/