@bobfrankston/msger 0.1.137 → 0.1.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
Binary file
|
package/msger-native/src/main.rs
CHANGED
|
@@ -402,12 +402,11 @@ fn main() {
|
|
|
402
402
|
.with_resizable(true)
|
|
403
403
|
.with_always_on_top(options.always_on_top);
|
|
404
404
|
|
|
405
|
-
// On Linux,
|
|
406
|
-
//
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}
|
|
405
|
+
// On Linux, show window immediately (invisible approach didn't fix rendering)
|
|
406
|
+
// #[cfg(target_os = "linux")]
|
|
407
|
+
// {
|
|
408
|
+
// window_builder = window_builder.with_visible(false);
|
|
409
|
+
// }
|
|
411
410
|
|
|
412
411
|
// Set icon if loaded successfully
|
|
413
412
|
if let Some(icon) = icon {
|
|
@@ -629,13 +628,12 @@ fn main() {
|
|
|
629
628
|
let webview = builder.build(window.as_ref()).expect("Failed to create webview");
|
|
630
629
|
|
|
631
630
|
// Fix for garbled window on Linux/GTK: Show window after webview creation
|
|
632
|
-
//
|
|
633
|
-
#[cfg(target_os = "linux")]
|
|
634
|
-
{
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}
|
|
631
|
+
// No longer using invisible window approach - show immediately
|
|
632
|
+
// #[cfg(target_os = "linux")]
|
|
633
|
+
// {
|
|
634
|
+
// std::thread::sleep(std::time::Duration::from_millis(500));
|
|
635
|
+
// window.set_visible(true);
|
|
636
|
+
// }
|
|
639
637
|
|
|
640
638
|
webview
|
|
641
639
|
} else {
|
|
@@ -695,13 +693,12 @@ fn main() {
|
|
|
695
693
|
let webview = builder.build(window.as_ref()).expect("Failed to create webview");
|
|
696
694
|
|
|
697
695
|
// Fix for garbled window on Linux/GTK: Show window after webview creation
|
|
698
|
-
//
|
|
699
|
-
#[cfg(target_os = "linux")]
|
|
700
|
-
{
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
}
|
|
696
|
+
// No longer using invisible window approach - show immediately
|
|
697
|
+
// #[cfg(target_os = "linux")]
|
|
698
|
+
// {
|
|
699
|
+
// std::thread::sleep(std::time::Duration::from_millis(500));
|
|
700
|
+
// window.set_visible(true);
|
|
701
|
+
// }
|
|
705
702
|
|
|
706
703
|
webview
|
|
707
704
|
};
|