summaryrefslogtreecommitdiffstats
path: root/views/widget/root_view_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/root_view_gtk.cc')
-rw-r--r--views/widget/root_view_gtk.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/widget/root_view_gtk.cc b/views/widget/root_view_gtk.cc
index 5c02a71..8f0c495 100644
--- a/views/widget/root_view_gtk.cc
+++ b/views/widget/root_view_gtk.cc
@@ -8,7 +8,7 @@
#include "app/gfx/canvas.h"
#include "base/logging.h"
-#include "third_party/skia/include/core/SkColor.h"
+#include "views/widget/widget_gtk.h"
namespace views {
@@ -16,6 +16,8 @@ void RootView::OnPaint(GdkEventExpose* event) {
gfx::CanvasPaint canvas(event);
if (!canvas.isEmpty()) {
+ canvas.set_composite_alpha(
+ static_cast<WidgetGtk*>(GetWidget())->is_transparent());
SchedulePaint(gfx::Rect(canvas.rectangle()), false);
if (NeedsPainting(false)) {
ProcessPaint(&canvas);