After vertically maximizing a window, the user may horizontally move/resize it, so on unmaximize only restore the saved y and h values. Vice versa for horizontal maximization (only restore x and w).
After vertically maximizing a window, the user may horizontally move/resize it,
so on unmaximize only restore the saved y and h values.
Vice versa for horizontal maximization (only restore x and w).

jordemort/e17,jordemort/e17,jordemort/e17