Commit a9cc86d
committed
window.c: Fix regression in window positioning when a window is
restored from a tiled state.
This reverts 051b8d2, which aimed to fix apps fullscreening to the
wrong monitor if they had been originally maximized and dragged
between monitors.
The fix unfortunately breaks the window's 'saved' unconstrained
position. For example, when using keyboard shortcuts to un-tile
(push in the opposite direction of the active tile), the size is
restored, but the position is not.
Instead, translate the saved x and y position relative to the new
monitor before calling maximize_internal().
This fixes the original problem without impacting keybindings and
other actions that remove the tiled state.
Fixes #809.
Fixes #810.1 parent 4accef8 commit a9cc86d
1 file changed
Lines changed: 34 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3532 | 3532 | | |
3533 | 3533 | | |
3534 | 3534 | | |
| 3535 | + | |
3535 | 3536 | | |
3536 | | - | |
3537 | | - | |
3538 | | - | |
3539 | | - | |
3540 | | - | |
3541 | | - | |
| 3537 | + | |
3542 | 3538 | | |
3543 | | - | |
3544 | | - | |
3545 | | - | |
3546 | | - | |
3547 | | - | |
3548 | | - | |
3549 | | - | |
3550 | | - | |
3551 | | - | |
3552 | | - | |
3553 | | - | |
3554 | | - | |
3555 | | - | |
3556 | | - | |
| 3539 | + | |
| 3540 | + | |
| 3541 | + | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
3557 | 3546 | | |
3558 | | - | |
3559 | | - | |
3560 | | - | |
3561 | | - | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
3562 | 3553 | | |
3563 | | - | |
3564 | | - | |
3565 | | - | |
3566 | | - | |
3567 | | - | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
| 3562 | + | |
| 3563 | + | |
| 3564 | + | |
| 3565 | + | |
| 3566 | + | |
3568 | 3567 | | |
3569 | | - | |
3570 | | - | |
| 3568 | + | |
| 3569 | + | |
| 3570 | + | |
| 3571 | + | |
| 3572 | + | |
3571 | 3573 | | |
3572 | | - | |
| 3574 | + | |
3573 | 3575 | | |
3574 | 3576 | | |
3575 | 3577 | | |
| |||
0 commit comments