Expose PlasmaWindow::pid through WaylandTasksModel.
ClosedPublic

Authored by hein on May 8 2017, 12:12 AM.

Diff Detail

Repository
R108 KWin
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
hein created this revision.May 8 2017, 12:12 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMay 8 2017, 12:12 AM

Commit embargo till 5.10 is branched.

libtaskmanager/waylandtasksmodel.cpp
340 ↗(On Diff #14259)

You are aware that pid is not always correct? Any process started by KWin shares KWin pid. Given that one need to be careful outside of KWin. You should not base any decisions on it and especially not try to close apps based on pid.

hein updated this revision to Diff 14267.May 8 2017, 9:55 AM

Put code working with the client connection into ShellClient.

Fix commit subject.

Restricted Application edited projects, added KWin; removed Plasma. · View Herald TranscriptMay 8 2017, 9:55 AM
Restricted Application added subscribers: KWin, kwin. · View Herald Transcript
hein added a comment.May 8 2017, 9:57 AM

Argh, the lack of sleep ... I updated the wrong Phab. Give me a few mins ;)

libtaskmanager/waylandtasksmodel.cpp
340 ↗(On Diff #14259)

Yeah, I'm aware based on how ClientConnection must work. I'll enhance the AppPid role apidox in the abstract model. It's fine with how it's being used currently.

hein updated this revision to Diff 14272.May 8 2017, 10:07 AM

Document the limitations of the AppPid data role better.

Restricted Application edited projects, added Plasma; removed KWin. · View Herald TranscriptMay 8 2017, 10:07 AM
graesslin accepted this revision.May 8 2017, 4:04 PM

Obviously commit embargo till 5.10 is branched is still in place.

This revision is now accepted and ready to land.May 8 2017, 4:04 PM
This revision was automatically updated to reflect the committed changes.