Grzegorz Kućmierz and Lucas Nogueira
11211c30e7
fix(window-state): stop macOS overlay windows changing size on every restore ( #3416 )
...
* fix(window-state): convert macOS coordinates to Logical to fix overlay shrink and multi-monitor DPI scaling drift
* chore: add changeset for logical coordinates and macOS overlay fix
* chore(window-state): fix change file package keys
* fix(window-state): save the macOS content rect size instead of guessing the title bar
The 20-40px outer/inner heuristic also matched ordinary decorated windows, saving their outer size so they grew by the title bar height on every restore. Derive the title bar height from the content rect instead, in one helper shared by update_state, the Resized handler and the initial metadata.
* fix(window-state): keep the saved state in physical pixels
State files written by earlier versions hold physical pixels, and logical coordinates are not one global space across monitors with different scale factors, so a position converted with one monitor's scale was restored on another. Converting with the window's scale at Moved time could also pick up a stale scale mid-drag, and an unavailable scale silently stored physical values as logical.
* fix(window-state): check the restored position against the monitors
For a maximized window the monitor check tested x and y, which are the monitor's corner, while the window was then placed at prev_x and prev_y. A window maximized after leaving a now-disconnected monitor passed the check and was restored off-screen.
* test(window-state): cover repeated size and position restores in e2e
Restores each window three times, also with an overlay title bar, and checks the inner and outer size (or position) still match the first save, so drift between saving and restoring accumulates and fails the test.
* chore(window-state): describe the restore fixes in the change file
* chore(deps): update @crabnebula/test-runner-backend to 0.3.1
0.3.0 returns a new-session response that WebdriverIO 10 rejects as not W3C, so every macOS e2e spec failed to create a session.
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2026-10-17 22:13:18 -03:00
Lucas Nogueira
3d8a3c877b
chore: edition 2024
2026-09-26 15:36:22 -03:00
Lucas Nogueira
a87a3c7d44
chore: update documentation
2026-09-22 11:30:47 -03:00
Tony
13c63af965
chore: fix clippy ( #3488 )
2026-07-15 16:01:07 +08:00
Tony
6a8f255878
feat(window-state): make flags optional in js side ( #2619 )
2025-07-01 21:21:58 +08:00
Tony
a35fea5015
fix(window-state): window size jump on multi monitor setup ( #2583 )
...
* fix: window size jump on multi monitor setup
* Add change file
2025-03-31 22:34:57 +08:00
Tony
a77b1353e9
refactor(window-state): simply some code ( #2578 )
2025-03-30 00:31:54 +08:00
thewh1teagle
0ec895c378
feat(window-state): add filter callback for excluding windows from tracking ( #2330 )
...
* feat(window-state): Add glob pattern support to denylist for flexible window management
* changefile
fix(window-state): Remove unnecessary reference in denylist pattern processing
chore(changes): Update window-state and window-state-js versioning for glob pattern support
docs(window-state): Update glob pattern denylist documentation for clarity
* refactor(window-state): Simplify denylist handling and error management in with_denylist method
* feat: add with_denylist_glob
* feat(window-state): Add filter callback for excluding windows from tracking
* refactor(window-state): Remove unused Glob error variant from Error enum
* refactor(window-state): Change filter_callback from Arc<Mutex<FilterCallbackFn>> to Box<FilterCallbackFn>
* refactor(window-state): Remove glob dependency from Cargo.toml and Cargo.lock
* feat(window-state): Introduce filter callback for dynamic window exclusion
* Update .changes/window-state-filter-callback.md
2025-01-18 09:31:20 +08:00
Fabian-Lars
51856e9e0a
docs: Remove header image from inline docs ( #2045 )
2024-11-13 16:07:29 +01:00
Fabian-Lars
cfb3ec0e21
fix(window-state): Ignore is_maximized state in resize events on macos ( #2007 )
2024-11-05 17:01:35 +01:00
Tony
7a37355e17
fix(window-state): deadlock when trying to restore window states on initial load ( #1787 )
...
* Fix deadlock when trying to restore window the size on initial load
* Typo
2024-09-15 18:01:27 -03:00
Tony
204e5aacad
fix(window-state)!: saving minimized state ( #1743 )
...
* Fix saving minimized state again
* Add change file
* Fix saving minimized size
* Add change file
* Fix missing .md
* Remove window-shadows
2024-09-13 06:29:38 +03:00
Tony
17e8014b69
fix(window-state): saving a minimized window's state changes its position to -32000 ( #1702 )
...
* Don't store position on minimized
* Add change file
* ?
2024-09-02 15:58:25 +08:00
Andrew Ferreira
f1372adc9d
feat(window-state): add Builder::map_label method ( #1497 )
2024-06-26 06:46:02 +03:00
Amr Bashir
d9de5b19d1
feat(positioner, window-state): impl WindowExt for WebviewWindow ( #1283 )
...
closes #1281
2024-05-03 13:16:40 +02:00
Tony
44e47fe98b
fix(window-state): restore window state for stubbed zerord state ( #1259 )
...
* Restore window state for default state
* Add change file
2024-04-29 19:33:33 +03:00
Amr Bashir
0e9541fe89
feat(window-state): support using a custom filename ( #1138 )
...
* feat(window-state): support using a custom filename
ref: https://github.com/tauri-apps/plugins-workspace/pull/1079
* generate api
* fmt
2024-04-03 21:29:48 +02:00
thewh1teagle
c013fa52cd
refactor(window-state)!: use json instead of bincode ( #1078 )
...
* feat(window-state): add option to use json
* feat(window-state): change state file from bincode to serdejson
* change file
* fmt
2024-03-29 02:41:42 +02:00
Lucas Fernandes Nogueira
a04ea2f382
refactor: only inject API IIFE script when withGlobalTauri is true ( #1071 )
...
* refactor: only inject API IIFE script when withGlobalTauri is true
* fmt
* update tauri
2024-03-19 15:03:20 -03:00
9dec9605ed
feat(clipboard): support readImage & writeImage ( #845 )
...
* feat(clipboard): support `read_image` & `write_image`
* fix plugin name
* platform specific bahavior
* remove unnecessary BufWriter
* improvement
* update example
* update example
* format
* header, fix change file
* use image from tauri
* fix ci
* update tauri, fix read
* image crate only on desktop [skip ci]
* Update plugins/authenticator/src/u2f_crate/protocol.rs [skip ci]
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
* Update plugins/authenticator/src/u2f_crate/protocol.rs [skip ci]
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
* update deps, address code review
* fix mobile [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
2024-03-19 09:35:37 -03:00
Lucas Fernandes Nogueira
cacf544d51
chore(deps): update to tauri beta.9 ( #1037 )
2024-03-07 00:08:52 -03:00
Lucas Nogueira
dbc0c0757e
dist
2024-02-19 17:16:06 -03:00
Lucas Nogueira
9dd1d09797
rebuild
2024-02-19 17:15:24 -03:00
FabianLars
14f5961569
chore: merge v1 into v2 for the last time
2024-02-03 20:16:36 +01:00
d198c01486
feat: update to tauri beta, add permissions ( #862 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev >
2024-02-03 15:14:41 -03:00
Fabian-Lars
387c2f9e0c
chore: Update Tauri to alpha.18 ( #802 )
2023-12-11 15:41:42 -03:00
Amr Bashir and Lucas Nogueira
1b98b85a1f
refactor: simplify rollup config and match @tauri-apps/api output style ( #722 )
...
* refactor: simplify rollup config and match `@tauri-apps/api` output style
* add license headers
* update api-iife.js [skip ci]
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2023-11-14 21:09:53 +02:00
Lucas Fernandes Nogueira and Amr Bashir
e438e0a62d
feat: update to alpha.17, typed mobile plugin IPC arguments ( #676 )
...
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
2023-10-29 16:06:44 -03:00
Mo and Lucas Nogueira
beb6b139eb
Fix invoke calls in dialog & shell init scripts ( #675 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-10-22 10:09:40 -03:00
Lucas Fernandes Nogueira and Amr Bashir
5c137365c6
chore: update to tauri alpha.16, api alpha.9 ( #673 )
...
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com >
2023-10-20 13:50:18 -03:00
Lucas Fernandes Nogueira
5de23e79f9
chore: update deps, make mobile script paths relative ( #649 )
2023-10-19 14:31:42 -03:00
Lucas Fernandes Nogueira
d74fc0a097
feat: update to alpha.11 ( #555 )
2023-08-14 14:51:20 -03:00
Simon Hyll
5fd597ddaf
docs: added banners and icons ( #443 )
...
* added banners and icons
* fix: formatting
2023-06-20 14:55:14 +03:00
Amr Bashir and Fabian-Lars
84b3612393
fix(window-state): port fixes from v1 ( #436 )
...
* fix(window-state): correctly set decoration state if no saved state exists, fixes #421 (#424 )
* fix(window-state): propagate promise (#435 )
closes #432
* fix(window-state): manual default implentation (#425 )
* fix(window-state): manual default implentation, closes #421
* Update lib.rs
* change file
* generated files
* fix symlinks?
---------
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de >
2023-06-13 23:30:39 +03:00
Lucas Fernandes Nogueira
b131bc8f7c
feat(plugins): inject API on window.__TAURI__ ( #383 )
2023-05-23 14:20:14 -03:00
Lucas Fernandes Nogueira
5914fb9f36
chore: add license headers ( #384 )
...
* feat: check for license headers
* add headers
* format
2023-05-21 16:56:10 -03:00
Lucas Fernandes Nogueira
d677f73495
feat(ci): test mobile targets ( #378 )
2023-05-19 09:46:06 -07:00
FabianLars
fad6edab71
Merge remote-tracking branch 'origin/dev' into next
2023-04-26 16:56:03 +02:00
Amr Bashir and Fabian-Lars
e5b07f4af2
feat(window-state): add js api, closes #254 ( #309 )
...
* feat(window-state): add js api, closes #254
* symlink tsconfig.json
* update symlink
* Update plugins/window-state/package.json
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de >
* Update Cargo.toml
* move to cmd.rs
* Update plugins/window-state/guest-js/index.ts
---------
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de >
2023-04-17 17:31:36 +02:00
Lucas Fernandes Nogueira
bbdccefa2d
chore(deps): update to tauri alpha.8 ( #303 )
2023-04-14 08:02:48 -03:00
renovate[bot] and FabianLars
58defafd2a
fix(deps): update rust crate bitflags to v2 ( #277 )
...
* fix(deps): update rust crate bitflags to v2
* derive clone and copy
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de >
2023-03-13 13:08:11 +01:00
Parker McMullin
b49d8addda
fix(window-state): Use outer position ( #276 )
2023-03-10 22:35:09 +02:00
Lucas Fernandes Nogueira
22f987bf24
feat: update setup hook to new syntax ( #257 )
2023-02-16 13:42:26 -03:00
Amr Bashir
4c6255d34f
fix(window-state): update state before saving ( #111 )
...
* fix(windows-state): update state before saving
regression introduced in #104
* update readme
* don't panic on non-existing windows
* Restore Cargo.lock
2023-01-25 18:09:14 +01:00
amrbashir
b02c7e15f9
clippy lints
2023-01-23 22:33:29 +02:00
amrbashir
1930a1aa84
cleanup & defer saving state until ClosedRequest
2023-01-23 22:24:36 +02:00
amrbashir
0abe028e88
clippy
2023-01-23 19:48:36 +02:00
amrbashir
47e85ad06d
feat(window-state): add flags to control what is saved/restored
2023-01-23 19:46:54 +02:00
Uriel and amrbashir
827bd47db6
fix(window-state): compare position with available monitors bounds ( #48 )
...
* remember monitor data
* check only if the position exists
Co-authored-by: amrbashir <amr.bashir2015@gmail.com >
2023-01-09 14:33:53 +02:00
Jonas Kruckenberg
eb3495fb72
copy plugin sources
2022-12-14 18:43:39 +01:00