@bobfrankston/msger 0.1.111 → 0.1.112

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
@@ -656,16 +656,19 @@ fn main() {
656
656
  #[cfg(not(target_os = "linux"))]
657
657
  let webview = builder.build(window.as_ref()).expect("Failed to create webview");
658
658
 
659
- // Fix for garbled window on Linux/GTK: Force window resize after webview creation
659
+ // Fix for garbled window on Linux/GTK: Force window update after webview creation
660
660
  // This ensures webkit2gtk renders properly on initial display
661
661
  #[cfg(target_os = "linux")]
662
662
  {
663
- let current_size = window.inner_size();
664
- window.set_inner_size(tao::dpi::PhysicalSize::new(
665
- current_size.width + 1,
666
- current_size.height + 1,
667
- ));
668
- window.set_inner_size(current_size);
663
+ // Use GTK directly to queue a redraw
664
+ use gtk::prelude::*;
665
+ if let Some(gtk_window) = vbox.toplevel().and_then(|w| w.downcast::<gtk::Window>().ok()) {
666
+ gtk_window.queue_draw();
667
+ // Also set and restore title to force window manager update
668
+ let title = gtk_window.title().unwrap_or_default();
669
+ gtk_window.set_title(&format!("{} ", title));
670
+ gtk_window.set_title(&title);
671
+ }
669
672
  }
670
673
 
671
674
  webview
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/msger",
3
- "version": "0.1.111",
3
+ "version": "0.1.112",
4
4
  "description": "Fast, lightweight, cross-platform message box - Rust-powered alternative to msgview",
5
5
  "type": "module",
6
6
  "main": "./index.js",