mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
gtk window transparent.
This commit is contained in:
parent
9f3bc0261c
commit
44c8f8f62e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user