fix(electrobun): set GTK window background to black (prevents white host flash)

This commit is contained in:
Hibryda 2026-03-25 18:37:48 +01:00
parent fbb18d1d42
commit a814e39410
2 changed files with 7 additions and 0 deletions

View file

@ -211,6 +211,13 @@ void agor_resize_init(void *window_ptr, int border)
webview = child;
}
/* Set GTK window background to black (prevents white flash before WebView loads) */
{
GdkRGBA black = { 0.0, 0.0, 0.0, 1.0 };
gtk_widget_override_background_color(GTK_WIDGET(stored_window), GTK_STATE_FLAG_NORMAL, &black);
fprintf(stderr, "[agor-resize] Window background set to black\n");
}
stored_webview = webview;
if (webview == GTK_WIDGET(stored_window)) {
fprintf(stderr, "[agor-resize] WARNING: no child widget found, connecting on window\n");

Binary file not shown.