diff --git a/.changes/allow-resizing-borderless.md b/.changes/allow-resizing-borderless.md deleted file mode 100644 index 46eebaa3b..000000000 --- a/.changes/allow-resizing-borderless.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": patch ---- - -On Windows, Allow resizing of `decorations: false` aka borderless window. \ No newline at end of file diff --git a/.changes/close-requested-linux.md b/.changes/close-requested-linux.md deleted file mode 100644 index 993fc2fb2..000000000 --- a/.changes/close-requested-linux.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": patch ---- - -Do not close the window on `CloseRequested` event and let the user handle it, keeping compatibility with macOS and Windows behavior. diff --git a/.changes/fix-aero-snap-borderless.md b/.changes/fix-aero-snap-borderless.md deleted file mode 100644 index 5d4dc08d1..000000000 --- a/.changes/fix-aero-snap-borderless.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": patch ---- - -On Windows, fix Aero-Snap for `decorations: false` aka borderless window. \ No newline at end of file diff --git a/.changes/gtk-monitor.md b/.changes/gtk-monitor.md deleted file mode 100644 index b14c8c7f7..000000000 --- a/.changes/gtk-monitor.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": patch ---- - -Implement `MonitorHandle` and related methods on Linux. diff --git a/.changes/is_menu_visible.md b/.changes/is_menu_visible.md deleted file mode 100644 index 0637952b6..000000000 --- a/.changes/is_menu_visible.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": patch ---- - -Add `is_menu_visilbe` getter on `Window` \ No newline at end of file diff --git a/.changes/macos-set-focus.md b/.changes/macos-set-focus.md deleted file mode 100644 index 5ecda049b..000000000 --- a/.changes/macos-set-focus.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": minor ---- - -On macOS, make sure the `set_focus` is triggered even if the window is not visible. diff --git a/.changes/macos-window-visible.md b/.changes/macos-window-visible.md deleted file mode 100644 index f3645233e..000000000 --- a/.changes/macos-window-visible.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": patch ---- - -Fix `with_visible(bool)` in `WindowBuilder` for macOS. diff --git a/.changes/non-exhaustive.md b/.changes/non-exhaustive.md deleted file mode 100644 index f901411bf..000000000 --- a/.changes/non-exhaustive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": minor ---- - -Mark enums as `#[non_exhaustive]` to prevent breaking changes on enum update. diff --git a/.changes/remove-with-focus.md b/.changes/remove-with-focus.md deleted file mode 100644 index 21b53f2d3..000000000 --- a/.changes/remove-with-focus.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": minor ---- - -Remove `with_focus` and `focus` field in `WindowAttribute`. Use `set_focus` instead in most cases. diff --git a/.changes/skip_taskbar_platformext.md b/.changes/skip_taskbar_platformext.md deleted file mode 100644 index 55f8c4901..000000000 --- a/.changes/skip_taskbar_platformext.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"tao": patch ---- -Revert d344825 and move `set_skip_taskbar` back behind a `WindowExtWindows` and `WindowExtUnix`. \ No newline at end of file diff --git a/.changes/tray-set-menu.md b/.changes/tray-set-menu.md deleted file mode 100644 index 019227377..000000000 --- a/.changes/tray-set-menu.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": minor ---- - -`SystemTray` expose `set_menu` to update the system tray menu once created. diff --git a/.changes/windows-hidden.md b/.changes/windows-hidden.md deleted file mode 100644 index 9476cdb2c..000000000 --- a/.changes/windows-hidden.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": patch ---- - -Only show window behaviour when it is visible. winuser::ShowWindow will show the window and make with_visible(false) obsolete. diff --git a/.changes/withskip_taskbar_platformext.md b/.changes/withskip_taskbar_platformext.md deleted file mode 100644 index b5530ad8a..000000000 --- a/.changes/withskip_taskbar_platformext.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -"tao": patch ---- -Add `with_skip_taskbar` behind `WindowBuilderExtWindows` and `WindowBuilderExtUnix`. diff --git a/CHANGELOG.md b/CHANGELOG.md index d2d8f2cd3..c2260c8d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## \[0.4.0] + +- On Windows, Allow resizing of `decorations: false` aka borderless window. + - [f35dd03d](https://github.com/tauri-apps/tao/commit/f35dd03dc6f15d51fb348c6b404c195ba2401339) fix(windows): fix aero-snap and resizing of borderless window, fixes [#103](https://github.com/tauri-apps/tao/pull/103) [#104](https://github.com/tauri-apps/tao/pull/104) ([#110](https://github.com/tauri-apps/tao/pull/110)) on 2021-07-07 +- Do not close the window on `CloseRequested` event and let the user handle it, keeping compatibility with macOS and Windows behavior. + - [ea7330ef](https://github.com/tauri-apps/tao/commit/ea7330eff77dba8ab0b5e65d82313a7b15733190) fix(linux): do not close window on `CloseRequested` event ([#114](https://github.com/tauri-apps/tao/pull/114)) on 2021-07-05 +- On Windows, fix Aero-Snap for `decorations: false` aka borderless window. + - [f35dd03d](https://github.com/tauri-apps/tao/commit/f35dd03dc6f15d51fb348c6b404c195ba2401339) fix(windows): fix aero-snap and resizing of borderless window, fixes [#103](https://github.com/tauri-apps/tao/pull/103) [#104](https://github.com/tauri-apps/tao/pull/104) ([#110](https://github.com/tauri-apps/tao/pull/110)) on 2021-07-07 +- Implement `MonitorHandle` and related methods on Linux. + - [6fcfa629](https://github.com/tauri-apps/tao/commit/6fcfa62959800e6205068e74fa8648b5e12c6103) feat(linux): implement `MonitorHandle` and related methods ([#125](https://github.com/tauri-apps/tao/pull/125)) on 2021-07-12 +- Add `is_menu_visilbe` getter on `Window` + - [308411ca](https://github.com/tauri-apps/tao/commit/308411caeacc3b7c701d8d857964248a3411dfaa) feat: add `is_menu_visible` ([#108](https://github.com/tauri-apps/tao/pull/108)) on 2021-07-06 +- On macOS, make sure the `set_focus` is triggered even if the window is not visible. + - [3da167aa](https://github.com/tauri-apps/tao/commit/3da167aad9dad8ec2e3b3af52175a74a5ef07b99) fix(macos): `set_focus` should be triggered even if the window isn't visible ([#128](https://github.com/tauri-apps/tao/pull/128)) on 2021-07-14 +- Fix `with_visible(bool)` in `WindowBuilder` for macOS. + - [a0ac7075](https://github.com/tauri-apps/tao/commit/a0ac7075bdc5b9e37900c0f38b97a86071ce1dfd) fix(macos): Window state (`visible`) ([#119](https://github.com/tauri-apps/tao/pull/119)) on 2021-07-06 +- Mark enums as `#[non_exhaustive]` to prevent breaking changes on enum update. + - [9b906f50](https://github.com/tauri-apps/tao/commit/9b906f508477f0a67cc3b853909c24fe754b86c9) refactor: add `#[non_exhaustive]` attributes to enums ([#90](https://github.com/tauri-apps/tao/pull/90)) on 2021-07-07 +- Remove `with_focus` and `focus` field in `WindowAttribute`. Use `set_focus` instead in most cases. + - [e2399bc9](https://github.com/tauri-apps/tao/commit/e2399bc92642601d999a2579c0626dfe017a262c) Remove `with_focus` and `focus` field in `WindowAttribute` ([#121](https://github.com/tauri-apps/tao/pull/121)) on 2021-07-06 +- Revert d344825 and move `set_skip_taskbar` back behind a `WindowExtWindows` and `WindowExtUnix`. + - [a641d3a3](https://github.com/tauri-apps/tao/commit/a641d3a317c132661abf08723e4f87fb515e00ed) refactor: Revert d344825, move `set_skip_taskbar` behind platform-ext ([#118](https://github.com/tauri-apps/tao/pull/118)) on 2021-07-06 +- `SystemTray` expose `set_menu` to update the system tray menu once created. + - [578dd23e](https://github.com/tauri-apps/tao/commit/578dd23e02bbc63a2d2362b823730c470c1c029c) feat: implement `set_menu` for system tray ([#106](https://github.com/tauri-apps/tao/pull/106)) on 2021-07-14 +- Only show window behaviour when it is visible. winuser::ShowWindow will show the window and make with_visible(false) obsolete. + - [ff0903f6](https://github.com/tauri-apps/tao/commit/ff0903f62b7e206fd9018a7140f5d2729d4ab8ba) Only show window behaviour when it is visible ([#126](https://github.com/tauri-apps/tao/pull/126)) on 2021-07-14 +- Add `with_skip_taskbar` behind `WindowBuilderExtWindows` and `WindowBuilderExtUnix`. + - [e7cdb950](https://github.com/tauri-apps/tao/commit/e7cdb950c719a0efd93538324ba8773dd2c7abcc) feat(taskbar): add `with_skip_taskbar` for windows and linux ([#127](https://github.com/tauri-apps/tao/pull/127)) on 2021-07-14 + ## \[0.3.1] - Add `window_id` to `MenuEvent`. diff --git a/Cargo.toml b/Cargo.toml index 73ea78337..62a4af69c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tao" -version = "0.3.1" +version = "0.4.0" description = "Cross-platform window manager library." authors = [ "Tauri Programme within The Commons Conservancy",