fix(electrobun): set GTK window background to black (prevents white host flash)
This commit is contained in:
parent
fbb18d1d42
commit
a814e39410
2 changed files with 7 additions and 0 deletions
|
|
@ -211,6 +211,13 @@ void agor_resize_init(void *window_ptr, int border)
|
||||||
webview = child;
|
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;
|
stored_webview = webview;
|
||||||
if (webview == GTK_WIDGET(stored_window)) {
|
if (webview == GTK_WIDGET(stored_window)) {
|
||||||
fprintf(stderr, "[agor-resize] WARNING: no child widget found, connecting on window\n");
|
fprintf(stderr, "[agor-resize] WARNING: no child widget found, connecting on window\n");
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue