@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
|
package/msger-native/src/main.rs
CHANGED
|
@@ -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
|
|
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
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
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
|