From cbb186912dae337ea11a79544b4a79bb3e69e9aa Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 1 Sep 2011 01:12:34 +0000 Subject: Fix kompmgr artifacts when resizing shaped windows Restore original konsole opacity for background colors when ARGB visuals are active git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1250652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konsole/konsole/TEWidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'konsole') diff --git a/konsole/konsole/TEWidget.cpp b/konsole/konsole/TEWidget.cpp index 32f6da202..38862fb18 100644 --- a/konsole/konsole/TEWidget.cpp +++ b/konsole/konsole/TEWidget.cpp @@ -99,6 +99,8 @@ extern bool argb_visual; // declared in main.cpp and konsole_part.cpp +bool draw_translucent_background_colors = false; // FIXME move to a GUI configuration setting + // scroll increment used when dragging selection at top/bottom of window. // static @@ -629,7 +631,7 @@ void TEWidget::drawAttrStr(TQPainter &paint, TQRect rect, attr->b == cacol(CO_DFT, colorsSwapped ? DEFAULT_FORE_COLOR : DEFAULT_BACK_COLOR) ) // draw background colors with 75% opacity - if ( argb_visual && tqAlpha(blend_color) < 0xff ) { + if ( draw_translucent_background_colors && argb_visual && tqAlpha(blend_color) < 0xff ) { QRgb col = bColor.rgb(); TQ_UINT8 salpha = 192; -- cgit v1.2.1