summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-terms/sakura/files/sakura-3.8.3-opacity.patch')
-rw-r--r--x11-terms/sakura/files/sakura-3.8.3-opacity.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/x11-terms/sakura/files/sakura-3.8.3-opacity.patch b/x11-terms/sakura/files/sakura-3.8.3-opacity.patch
new file mode 100644
index 000000000000..4bb4ba88f189
--- /dev/null
+++ b/x11-terms/sakura/files/sakura-3.8.3-opacity.patch
@@ -0,0 +1,14 @@
+Fix regression with opacity not being applied on startup.
+https://bugs.launchpad.net/sakura/+bug/1942665
+https://github.com/dabisu/sakura/pull/5
+--- a/src/sakura.c
++++ b/src/sakura.c
+@@ -2180,4 +2180,8 @@
+ gtk_widget_add_events(sakura.notebook, GDK_SCROLL_MASK);
+
++ screen = gtk_widget_get_screen (GTK_WIDGET (sakura.main_window));
++ GdkVisual *visual = gdk_screen_get_rgba_visual (screen);
++ if (visual != NULL && gdk_screen_is_composited (screen))
++ gtk_widget_set_visual (GTK_WIDGET (sakura.main_window), visual);
+
+ /*** Command line options initialization ***/