Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
Oxygen Transparent
Commits
f65d3588
Commit
f65d3588
authored
Sep 12, 2012
by
Hugo Pereira Da Costa
Browse files
Do not set opaque region behind konsole, since it breaks transparent themes.
CCBUG: 306052
parent
16a6cdbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
style/oxygenblurhelper.cpp
View file @
f65d3588
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment