Now calculates the ratio at which the window is displaced from the left and top of the current window rather than store absolute pixel values.
The issue with that was that, when dragging the window from one screen to another, the offset would end up being that of an entire screen, placing the window outside the screen when visibility was then toggled again.
This way, the window should appear with the exact same relative offset, regardless of screen resolution and whether or not the window is dragged within one screen or from one screen to another.
Now calculates the ratio at which the window is displaced from the left and top of the current window rather than store absolute pixel values. The issue with that was that, when dragging the window from one screen to another, the offset would end up being that of an entire screen, placing the window outside the screen when visibility was then toggled again. This way, the window should appear with the exact same relative offset, regardless of screen resolution and whether or not the window is dragged within one screen or from one screen to another.
Closes #119