[PR #495] [MERGED] Custom Tauri window state plugin #3344

Closed
opened 2026-07-15 02:02:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mountain-loop/yaak/pull/495
Author: @gschier
Created: 7/3/2026
Status: Merged
Merged: 7/3/2026
Merged by: @gschier

Base: mainHead: codex/custom-window-state


📝 Commits (2)

  • f3302b8 Replace Tauri window state plugin
  • 636d4c8 Address window state review feedback

📊 Changes

8 files changed (+252 additions, -37 deletions)

View changed files

📝 Cargo.lock (+2 -16)
📝 crates-tauri/yaak-app-client/Cargo.toml (+0 -1)
📝 crates-tauri/yaak-app-client/src/lib.rs (+0 -15)
📝 crates-tauri/yaak-app-proxy/src/lib.rs (+1 -1)
📝 crates-tauri/yaak-window/Cargo.toml (+2 -0)
📝 crates-tauri/yaak-window/src/lib.rs (+2 -0)
📝 crates-tauri/yaak-window/src/window.rs (+27 -4)
crates-tauri/yaak-window/src/window_state.rs (+218 -0)

📄 Description

Replaces tauri-plugin-window-state with Yaak-owned window state handling.

The new state layer restores size, position, and maximized state before window creation via WebviewWindowBuilder, then saves updates on move/resize with a 1000ms debounce and flushes on close. State is stored in window-state.json under the app config directory.

This avoids the old plugin's post-create restore path, which was freezing CEF windows during testing.

Related #494


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mountain-loop/yaak/pull/495 **Author:** [@gschier](https://github.com/gschier) **Created:** 7/3/2026 **Status:** ✅ Merged **Merged:** 7/3/2026 **Merged by:** [@gschier](https://github.com/gschier) **Base:** `main` ← **Head:** `codex/custom-window-state` --- ### 📝 Commits (2) - [`f3302b8`](https://github.com/mountain-loop/yaak/commit/f3302b8e590222e06fe6a1380e971d218040301e) Replace Tauri window state plugin - [`636d4c8`](https://github.com/mountain-loop/yaak/commit/636d4c840632f1026e07230f67534ffc2b49ad08) Address window state review feedback ### 📊 Changes **8 files changed** (+252 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+2 -16) 📝 `crates-tauri/yaak-app-client/Cargo.toml` (+0 -1) 📝 `crates-tauri/yaak-app-client/src/lib.rs` (+0 -15) 📝 `crates-tauri/yaak-app-proxy/src/lib.rs` (+1 -1) 📝 `crates-tauri/yaak-window/Cargo.toml` (+2 -0) 📝 `crates-tauri/yaak-window/src/lib.rs` (+2 -0) 📝 `crates-tauri/yaak-window/src/window.rs` (+27 -4) ➕ `crates-tauri/yaak-window/src/window_state.rs` (+218 -0) </details> ### 📄 Description Replaces `tauri-plugin-window-state` with Yaak-owned window state handling. The new state layer restores size, position, and maximized state before window creation via `WebviewWindowBuilder`, then saves updates on move/resize with a 1000ms debounce and flushes on close. State is stored in `window-state.json` under the app config directory. This avoids the old plugin's post-create restore path, which was freezing CEF windows during testing. Related #494 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-07-15 02:02:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/yaak#3344