From bb2cc4aa568e7206bdc2d02cb3e0eb8b8d3364c5 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 21 Jan 2017 06:34:44 +0000 Subject: [PATCH] GTK: do not compose rendered geometry with an alpha buffer. The somewhat confusingly named set_has_alpha() function does not affect whether alpha can be used during rendering to the area. Rather, it affects whether alpha will be used when composing the contents of the area with the window underneath it. --- src/platform/gtkmain.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/platform/gtkmain.cpp b/src/platform/gtkmain.cpp index fe0c4a32..079fd395 100644 --- a/src/platform/gtkmain.cpp +++ b/src/platform/gtkmain.cpp @@ -350,7 +350,6 @@ public: Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK | Gdk::BUTTON_MOTION_MASK | Gdk::SCROLL_MASK | Gdk::LEAVE_NOTIFY_MASK); - set_has_alpha(true); set_has_depth_buffer(true); } @@ -1122,7 +1121,6 @@ public: TextWidget(Glib::RefPtr adjustment) : _adjustment(adjustment) { set_events(Gdk::POINTER_MOTION_MASK | Gdk::BUTTON_PRESS_MASK | Gdk::SCROLL_MASK | Gdk::LEAVE_NOTIFY_MASK); - set_has_alpha(true); set_has_depth_buffer(true); }