summaryrefslogtreecommitdiff
path: root/surf/patches/surf-gtkblackbg-20231229-30f5464.diff
blob: 990f842891a5e21e06f2a8a9f5d21b1ee9acd31c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From 45401ba76aa0157d49cba61dbc42ddc03d675796 Mon Sep 17 00:00:00 2001
From: Scarlett McAllister <no+reply@roygbyte.com>
Date: Fri, 29 Dec 2023 12:41:32 -0400
Subject: [PATCH] Add black bg to gtk window and make it visible through webkit
 view

---
 config.def.h | 2 +-
 surf.c       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h
index 93cfeeb..ba68287 100644
--- a/config.def.h
+++ b/config.def.h
@@ -29,7 +29,7 @@ static Parameter defconfig[ParameterLast] = {
 	[FontSize]            =       { { .i = 12 },    },
 	[FrameFlattening]     =       { { .i = 0 },     },
 	[Geolocation]         =       { { .i = 0 },     },
-	[HideBackground]      =       { { .i = 0 },     },
+	[HideBackground]      =       { { .i = 1 },     },
 	[Inspector]           =       { { .i = 0 },     },
 	[Java]                =       { { .i = 1 },     },
 	[JavaScript]          =       { { .i = 1 },     },
diff --git a/surf.c b/surf.c
index f8c8dec..a6cb224 100644
--- a/surf.c
+++ b/surf.c
@@ -1461,6 +1461,7 @@ createwindow(Client *c)
 	g_signal_connect(G_OBJECT(w), "window-state-event",
 	                 G_CALLBACK(winevent), c);
 
+	gtk_widget_modify_bg(GTK_WINDOW(w), GTK_STATE_NORMAL, &(GdkColor){0});
 	return w;
 }
 
-- 
2.42.0