From 44c8f8f62e07250c40581f710c10a93b47af5675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sat, 9 Jan 2021 16:33:41 +0100 Subject: [PATCH] gtk window transparent. --- internal/desktop/gtk/gtk.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/desktop/gtk/gtk.c b/internal/desktop/gtk/gtk.c index 1184d695..f49772fa 100644 --- a/internal/desktop/gtk/gtk.c +++ b/internal/desktop/gtk/gtk.c @@ -64,6 +64,11 @@ void drag_window(char **uris) { gtk_window_set_decorated(window, FALSE); gtk_window_set_keep_above(window, TRUE); gtk_window_set_default_size(window, 100, 100); + + gtk_widget_set_app_paintable(widget, TRUE); + GdkScreen *screen = gtk_widget_get_screen(widget); + GdkVisual *visual = gdk_screen_get_rgba_visual(screen); + gtk_widget_set_visual(widget, visual); gtk_widget_set_opacity(widget, 0); GtkTargetList* target_list = gtk_target_list_new(NULL, 0);