0

I have a GtkWindow and want to use the functionality of gdk_window_get_visible_region() and gdk_window_shape_combine_region_() on them in order to create a custom shaped window. I understand that GtkWindow and GdkWindow are very different objects.

I can't find a way to connect the two. I already have my GtkWindow with a partly opaque cairo drawing on it. Is there a way to simply convert it to a GdkWindow?

Natjo
  • 2,005
  • 29
  • 75
  • 2
    You can use `gtk_widget_get_window(GtkWidget *)` to get the GdkWindow for your GtkWindow – TheNextman Nov 13 '19 at 21:22
  • Does this answer your question? [How do I get the gdk window for a gtk window in C?](https://stackoverflow.com/questions/10264625/how-do-i-get-the-gdk-window-for-a-gtk-window-in-c) – Natjo Nov 14 '19 at 20:02

0 Answers0