From 24222d82052d26b3e84802f44a902f60360ae2b3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 13 Sep 2022 09:48:43 -0300 Subject: [PATCH] Publish New Versions (#532) Co-authored-by: amrbashir --- .changes/always-on-bottom.md | 5 ---- .changes/android-package-name.md | 5 ---- .changes/content-protection.md | 5 ---- .changes/filter-windows.md | 7 ------ .changes/fix-macos-tray-creation.md | 5 ---- .changes/gtk-resizable.md | 11 -------- .changes/is-focused.md | 5 ---- .changes/linux-global-shortcut.md | 5 ---- .changes/linux-wayland.md | 5 ---- .changes/macos-sytem-tray-title.md | 5 ---- .changes/windows-0.39.0.md | 9 ------- CHANGELOG.md | 39 +++++++++++++++++++++++++++++ Cargo.toml | 2 +- 13 files changed, 40 insertions(+), 68 deletions(-) delete mode 100644 .changes/always-on-bottom.md delete mode 100644 .changes/android-package-name.md delete mode 100644 .changes/content-protection.md delete mode 100644 .changes/filter-windows.md delete mode 100644 .changes/fix-macos-tray-creation.md delete mode 100644 .changes/gtk-resizable.md delete mode 100644 .changes/is-focused.md delete mode 100644 .changes/linux-global-shortcut.md delete mode 100644 .changes/linux-wayland.md delete mode 100644 .changes/macos-sytem-tray-title.md delete mode 100644 .changes/windows-0.39.0.md diff --git a/.changes/always-on-bottom.md b/.changes/always-on-bottom.md deleted file mode 100644 index 233a4f45f..000000000 --- a/.changes/always-on-bottom.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": "patch" ---- - -Implement "always on bottom" as contrary to "always on top". diff --git a/.changes/android-package-name.md b/.changes/android-package-name.md deleted file mode 100644 index 93b6121db..000000000 --- a/.changes/android-package-name.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": "patch" ---- - -Fix calling android functions when package name contained escaped underscore. \ No newline at end of file diff --git a/.changes/content-protection.md b/.changes/content-protection.md deleted file mode 100644 index 2b12f78fb..000000000 --- a/.changes/content-protection.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": "minor" ---- - -Add `Window::set_content_protection` for macOS and Windows. \ No newline at end of file diff --git a/.changes/filter-windows.md b/.changes/filter-windows.md deleted file mode 100644 index 84ce3d413..000000000 --- a/.changes/filter-windows.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"tao": minor ---- - -* Add DeviceEventFilter on Windows. -* **Breaking**: On Windows, device events are now ignored for unfocused windows by default, use `EventLoopWindowTarget::set_device_event_filter` to set the filter level. - diff --git a/.changes/fix-macos-tray-creation.md b/.changes/fix-macos-tray-creation.md deleted file mode 100644 index 83cc42cc3..000000000 --- a/.changes/fix-macos-tray-creation.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": patch ---- - -Fix system tray creation after event loop starts on macOS. diff --git a/.changes/gtk-resizable.md b/.changes/gtk-resizable.md deleted file mode 100644 index 46b7f4104..000000000 --- a/.changes/gtk-resizable.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"tao": patch ---- - -Fix resize doesn't work when calling with resizable. Also add platform specific note to `set_resizable`. -On Linux, most size methods like maximized are async and do not work well with calling -sequentailly. For setting inner or outer size, you don't need to set resizable to true before -it. It can resize no matter what. But if you insist to do so, it has a `100, 100` minimum -limitation somehow. For maximizing, it requires resizable is true. If you really want to set -resizable to false after it. You might need a mechanism to check the window is really -maximized. diff --git a/.changes/is-focused.md b/.changes/is-focused.md deleted file mode 100644 index 14c261b0a..000000000 --- a/.changes/is-focused.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": "patch" ---- - -Add `Window::is_focused`. diff --git a/.changes/linux-global-shortcut.md b/.changes/linux-global-shortcut.md deleted file mode 100644 index 1a50ef057..000000000 --- a/.changes/linux-global-shortcut.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": "patch" ---- - -On Linux, fix global shortcut are never triggered when a Lock key is ON, eg. NumLock, CapsLock. diff --git a/.changes/linux-wayland.md b/.changes/linux-wayland.md deleted file mode 100644 index d59d779ab..000000000 --- a/.changes/linux-wayland.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": "patch" ---- - -Disables the global shortcut manager on wayland as its X11-specific. diff --git a/.changes/macos-sytem-tray-title.md b/.changes/macos-sytem-tray-title.md deleted file mode 100644 index 642d6f4c4..000000000 --- a/.changes/macos-sytem-tray-title.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tao": "minor" ---- - -Added `SystemTrayExtMacOS::set_title` to `SystemTray` and `SystemTrayBuilderExtMacOS::with_title` to set the tray icon title on MacOS diff --git a/.changes/windows-0.39.0.md b/.changes/windows-0.39.0.md deleted file mode 100644 index 584036e71..000000000 --- a/.changes/windows-0.39.0.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"tao": "patch" ---- - -Update `windows-rs` to the latest 0.39.0 release. - -The `alloc` feature has been removed, which means it no longer accepts Rust `String` or `&str` parameters and implicitly converts them to `PWSTR` or `PSTR`. - -For string literals, that feature was replaced with `s!()` and `w!()` macros which null terminate the string literal at compile time and convert to UTF-16 if necessary. The `s!()` macro is fine, however the `w!()` macro uses `HSTRING` types from WinRT for maximum compatibility with WinRT types. Since Tao only uses Win32 APIs, this change relies on `util::encode_wide` to convert to a `Vec` instead. \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 930696562..d5fceb14b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,44 @@ # Changelog +## \[0.14.0] + +- Implement "always on bottom" as contrary to "always on top". + - [a2a7b726](https://github.com/tauri-apps/tao/commit/a2a7b7262cc55e4c6defb79d5f77efce9d7e386d) Always on bottom ([#522](https://github.com/tauri-apps/tao/pull/522)) on 2022-08-22 +- Fix calling android functions when package name contained escaped underscore. + - [6d8cc7e3](https://github.com/tauri-apps/tao/commit/6d8cc7e3e4091462a741ee748112a3ea4aa4f12f) fix(android): unescape escaped underscore in package name ([#531](https://github.com/tauri-apps/tao/pull/531)) on 2022-08-16 +- Add `Window::set_content_protection` for macOS and Windows. + - [802146fb](https://github.com/tauri-apps/tao/commit/802146fb8692a46185846a64163c174520450c43) feat: implement set_content_protection, closes [#550](https://github.com/tauri-apps/tao/pull/550) ([#551](https://github.com/tauri-apps/tao/pull/551)) on 2022-09-04 +- - Add DeviceEventFilter on Windows. +- **Breaking**: On Windows, device events are now ignored for unfocused windows by default, use `EventLoopWindowTarget::set_device_event_filter` to set the filter level. +- [5bbd4f8f](https://github.com/tauri-apps/tao/commit/5bbd4f8f72901425432a35915d79d0bee0c96cce) Add DeviceEventFilter on Windows ([#465](https://github.com/tauri-apps/tao/pull/465)) on 2022-08-17 +- Fix system tray creation after event loop starts on macOS. + - [759b7db3](https://github.com/tauri-apps/tao/commit/759b7db37b8188ea38fa2919f9a0e504d4d2edca) fix(macos): retain tray to prevent segfault when event loop is running ([#539](https://github.com/tauri-apps/tao/pull/539)) on 2022-08-20 +- Fix resize doesn't work when calling with resizable. Also add platform specific note to `set_resizable`. + On Linux, most size methods like maximized are async and do not work well with calling + sequentailly. For setting inner or outer size, you don't need to set resizable to true before + it. It can resize no matter what. But if you insist to do so, it has a `100, 100` minimum + limitation somehow. For maximizing, it requires resizable is true. If you really want to set + resizable to false after it. You might need a mechanism to check the window is really + maximized. + - [4524d5d3](https://github.com/tauri-apps/tao/commit/4524d5d399c8bf01d22b160a9f9a04d5b074b466) fix(Linux): resize doesn't work when calling with resizable, fix [#545](https://github.com/tauri-apps/tao/pull/545) ([#553](https://github.com/tauri-apps/tao/pull/553)) on 2022-09-08 +- Add `Window::is_focused`. + - [7d2eeeeb](https://github.com/tauri-apps/tao/commit/7d2eeeebb4da15e9aeda9bf17e80ebdf23c95cee) feat: Window::is_focused ([#533](https://github.com/tauri-apps/tao/pull/533)) on 2022-08-17 +- On Linux, fix global shortcut are never triggered when a Lock key is ON, eg. NumLock, CapsLock. + - [07e3c1f5](https://github.com/tauri-apps/tao/commit/07e3c1f55d18537dc5c776b2706490676bba7cde) fix(linux/globalShorcut): extract needed mods from event state, closes [#307](https://github.com/tauri-apps/tao/pull/307), closes [#537](https://github.com/tauri-apps/tao/pull/537) ([#538](https://github.com/tauri-apps/tao/pull/538)) on 2022-08-19 + - [871ad037](https://github.com/tauri-apps/tao/commit/871ad037b02b8ab4d650ba390664386e195c0bc7) chore: remove changefile, bug still exists on 2022-08-20 + - [7e5556e0](https://github.com/tauri-apps/tao/commit/7e5556e0f247076e8f547fca313d957eeca46366) fix(linux/globalShortcut): grab the shortcut with extra mods, closes [#307](https://github.com/tauri-apps/tao/pull/307) ([#540](https://github.com/tauri-apps/tao/pull/540)) on 2022-08-20 +- Disables the global shortcut manager on wayland as its X11-specific. + - [27ab6f4d](https://github.com/tauri-apps/tao/commit/27ab6f4dcef19c052b0434873e34b54447b70860) fix(linux/globalShortcut): disable on wayland ([#543](https://github.com/tauri-apps/tao/pull/543)) on 2022-08-26 +- Added `SystemTrayExtMacOS::set_title` to `SystemTray` and `SystemTrayBuilderExtMacOS::with_title` to set the tray icon title on MacOS + - [972307dd](https://github.com/tauri-apps/tao/commit/972307ddf088b0f941be2ea66bded2473222aed5) feat: added text support to system tray for macos, closes [#65](https://github.com/tauri-apps/tao/pull/65) ([#554](https://github.com/tauri-apps/tao/pull/554)) on 2022-09-10 +- Update `windows-rs` to the latest 0.39.0 release. + +The `alloc` feature has been removed, which means it no longer accepts Rust `String` or `&str` parameters and implicitly converts them to `PWSTR` or `PSTR`. + +For string literals, that feature was replaced with `s!()` and `w!()` macros which null terminate the string literal at compile time and convert to UTF-16 if necessary. The `s!()` macro is fine, however the `w!()` macro uses `HSTRING` types from WinRT for maximum compatibility with WinRT types. Since Tao only uses Win32 APIs, this change relies on `util::encode_wide` to convert to a `Vec` instead. + +- [84e1a9f9](https://github.com/tauri-apps/tao/commit/84e1a9f93fa7e9e83f1ed92320ab9d7998673c60) Update windows to 0.39.0 ([#544](https://github.com/tauri-apps/tao/pull/544)) on 2022-08-31 + ## \[0.13.3] - Implement custom protocol on Android. diff --git a/Cargo.toml b/Cargo.toml index 7709280b7..3321de03a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tao" -version = "0.13.3" +version = "0.14.0" description = "Cross-platform window manager library." authors = [ "Tauri Programme within The Commons Conservancy",