Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plasma Integration
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Plasma Integration
Commits
6288079d
Commit
6288079d
authored
May 24, 2018
by
Kai Uwe Broulik
🍇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't manipulate foreign windows
Differential Revision:
https://phabricator.kde.org/D13062
parent
286b583c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
src/platformtheme/x11integration.cpp
src/platformtheme/x11integration.cpp
+10
-8
No files found.
src/platformtheme/x11integration.cpp
View file @
6288079d
...
...
@@ -60,15 +60,17 @@ bool X11Integration::eventFilter(QObject *watched, QEvent *event)
if
(
event
->
type
()
==
QEvent
::
PlatformSurface
)
{
if
(
QWindow
*
w
=
qobject_cast
<
QWindow
*>
(
watched
))
{
QPlatformSurfaceEvent
*
pe
=
static_cast
<
QPlatformSurfaceEvent
*>
(
event
);
if
(
pe
->
surfaceEventType
()
==
QPlatformSurfaceEvent
::
SurfaceCreated
)
{
if
(
qApp
->
property
(
s_schemePropertyName
).
isValid
())
{
installColorScheme
(
w
);
if
(
!
w
->
flags
().
testFlag
(
Qt
::
ForeignWindow
))
{
if
(
pe
->
surfaceEventType
()
==
QPlatformSurfaceEvent
::
SurfaceCreated
)
{
if
(
qApp
->
property
(
s_schemePropertyName
).
isValid
())
{
installColorScheme
(
w
);
}
const
auto
blurBehindProperty
=
w
->
property
(
s_blurBehindPropertyName
.
constData
());
if
(
blurBehindProperty
.
isValid
())
{
KWindowEffects
::
enableBlurBehind
(
w
->
winId
(),
blurBehindProperty
.
toBool
());
}
installDesktopFileName
(
w
);
}
const
auto
blurBehindProperty
=
w
->
property
(
s_blurBehindPropertyName
.
constData
());
if
(
blurBehindProperty
.
isValid
())
{
KWindowEffects
::
enableBlurBehind
(
w
->
winId
(),
blurBehindProperty
.
toBool
());
}
installDesktopFileName
(
w
);
}
}
}
...
...
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