Commit e956457
committed
fix: remove macOS frameless window 28px shift compensation
The tauri-plugin-window-state v2.4.1 has no macOS-specific offset
for frameless windows - it correctly uses outer_position() for saving
and set_position() for restoring. The 28px compensation was added for
a bug in an older plugin version that no longer applies.
On macOS frameless windows (decorations: false), outer_position()
returns the window frame origin which equals the content origin
since there is no titlebar. The compensation was causing the saved
position to be offset by 28px, leading to the window appearing
lower on restart when the correction failed to apply.
This removes all +/-28 compensation from both save (quit_app) and
restore (lib.rs setup thread, restore_window_state command) paths.1 parent 949b62f commit e956457
2 files changed
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 56 | | |
64 | 57 | | |
65 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | 134 | | |
140 | 135 | | |
141 | 136 | | |
| |||
0 commit comments