Don't try to read X11 properties on ShellClient
AbandonedPublic

Authored by graesslin on Apr 25 2016, 3:28 PM.

Details

Reviewers
None
Group Reviewers
Plasma
Summary

Effects and Shadow tried to read X11 properties unconditionally on
the window id. If the window id is not an X11 id this is going to fail.

This change introduced a check on whether the Toplevel is a ShellClient
and in that case the property is not read.

Diff Detail

Repository
R108 KWin
Branch
guard-reading-x11-properties
Lint
No Linters Available
Unit
No Unit Test Coverage
graesslin updated this revision to Diff 3516.Apr 25 2016, 3:28 PM
graesslin retitled this revision from to Don't try to read X11 properties on ShellClient.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptApr 25 2016, 3:28 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart added a subscriber: mart.Apr 28 2016, 9:13 AM
mart added inline comments.
effects.cpp
1672

couldn't this become a virtual instead?

graesslin added inline comments.May 2 2016, 2:20 PM
effects.cpp
1672

I don't really see a good way to expose this through a virtual and well the virtual check would do pretty much the same ;-)

I'll think about it.