[gtk+] gtkwindow: Don't set the background if the window is app-paintable
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkwindow: Don't set the background if the window is app-paintable
- Date: Sat, 14 Feb 2015 02:22:56 +0000 (UTC)
commit a34a0224e4fc6eff35fd41b7f318517b20b95713
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Feb 13 18:21:42 2015 -0800
gtkwindow: Don't set the background if the window is app-paintable
This fixes transparent DND windows.
gtk/gtkwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 4dbde2a..2b1bcca 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7006,7 +7006,7 @@ gtk_window_realize (GtkWidget *widget)
/* We don't need to set a background on the GdkWindow; with decorations
* we draw the background ourself
*/
- if (!priv->client_decorated)
+ if (!priv->client_decorated && !gtk_widget_get_app_paintable (widget))
gtk_style_context_set_background (gtk_widget_get_style_context (widget), gdk_window);
attributes.x = allocation.x;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]