Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not unmaximize windows that are not maximized or tiled - fixes Win…
…e bug Wine >= 5.16 updates the window state more often to fix problems in KDE [1], and this leads to the unmaximize function being called in some Windows applications. This caused problems with windows suddenly moving back to their original position at unexpected times using Marco or Muffin as window manager. See also bug reports [2,3]. In the case of Muffin, windows were moved back if they were maximised or either the tile type or tile mode was unset. This check would (almost) always pass because the tile mode is unset when a window is shaken loose in update_move before this function is called, and on an untiled window both variables are set to none regardless. This commit makes sure we are actually unmaximising a maximised window, or untiling a tiled one. [1] https://source.winehq.org/git/wine.git/commit/c5ec1585f6e5211a2b63e3435748210552250534 [2] https://bugs.winehq.org/show_bug.cgi?id=49779 [3] https://bugs.winehq.org/show_bug.cgi?id=50381
- Loading branch information