@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
@@ -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, create window invisible to avoid garbled rendering on webkit2gtk
406
- // We'll show it after webview is created
407
- #[cfg(target_os = "linux")]
408
- {
409
- window_builder = window_builder.with_visible(false);
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
- // Window was created invisible, now show it after webkit2gtk is ready
633
- #[cfg(target_os = "linux")]
634
- {
635
- // Give webkit2gtk more time to initialize - Pi needs longer delay
636
- std::thread::sleep(std::time::Duration::from_millis(500));
637
- window.set_visible(true);
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
- // Window was created invisible, now show it after webkit2gtk is ready
699
- #[cfg(target_os = "linux")]
700
- {
701
- // Give webkit2gtk more time to initialize - Pi needs longer delay
702
- std::thread::sleep(std::time::Duration::from_millis(500));
703
- window.set_visible(true);
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/msger",
3
- "version": "0.1.137",
3
+ "version": "0.1.138",
4
4
  "description": "Fast, lightweight, cross-platform message box - Rust-powered alternative to msgview",
5
5
  "type": "module",
6
6
  "main": "./index.js",