Commit f65d3588 authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa
Browse files

Do not set opaque region behind konsole, since it breaks transparent themes.

CCBUG: 306052
parent 16a6cdbf
......@@ -225,14 +225,16 @@ namespace Oxygen
QX11Info::display(), widget->winId(), _blurAtom, XA_CARDINAL, 32, PropModeReplace,
reinterpret_cast<const unsigned char *>(data.constData()), data.size() );
data.clear();
foreach( const QRect& rect, opaqueRegion.rects() )
{ data << rect.x() << rect.y() << rect.width() << rect.height(); }
XChangeProperty(
QX11Info::display(), widget->winId(), _opaqueAtom, XA_CARDINAL, 32, PropModeReplace,
reinterpret_cast<const unsigned char *>(data.constData()), data.size() );
if( ! widget->inherits( "Konsole::MainWindow" ) )
{
data.clear();
foreach( const QRect& rect, opaqueRegion.rects() )
{ data << rect.x() << rect.y() << rect.width() << rect.height(); }
XChangeProperty(
QX11Info::display(), widget->winId(), _opaqueAtom, XA_CARDINAL, 32, PropModeReplace,
reinterpret_cast<const unsigned char *>(data.constData()), data.size() );
}
}
// force update
......@@ -281,11 +283,7 @@ namespace Oxygen
( widget->testAttribute( Qt::WA_StyledBackground ) ||
qobject_cast<const QMenu*>( widget ) ||
qobject_cast<const QDockWidget*>( widget ) ||
qobject_cast<const QToolBar*>( widget ) ||
// konsole (thought that should be handled
// internally by the application)
widget->inherits( "Konsole::MainWindow" ) ) &&
qobject_cast<const QToolBar*>( widget ) ) &&
_helper.hasAlphaChannel( widget );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment