mate-desktop / marco

MATE default window manager
https://mate-desktop.org
GNU General Public License v2.0
193 stars 86 forks source link

window: Track window rectangle before tiling #682

Closed vkareh closed 3 years ago

vkareh commented 3 years ago

When tiling a maximized window, we should keep track of the saved rectangle so that tiling does not reset our window size. Otherwise, untiling the previously maximized window will end up with an unmaximized full-size window, rather than the original window size.

To reproduce:

  1. Open a window (pluma, mate-termina, etc)
  2. Maximize
  3. Tile right using keyboard shortcuts
  4. Restore window a. Before this patch, the restored window size is a full size window b. After this patch, the restored window size is the original size before maximizing
raveit65 commented 3 years ago

Confirmed, and it isn't really a full size window in my test. But maybe this caused by using this PR https://github.com/mate-desktop/marco/pull/678 in my test.

raveit65 commented 3 years ago

No related to PR. I think this needs to be fix for quarter-tiling too, here pressing the alt+F5 doesn't restore the window.

raveit65 commented 3 years ago

Can this be done for quarter-tiling too, please?