Works on X11 but not yet for Wayland
Details
Diff Detail
- Repository
- R120 Plasma Workspace
- Lint
Lint Skipped - Unit
Unit Tests Skipped
libtaskmanager/xwindowtasksmodel.cpp | ||
---|---|---|
432 | I would prefer if we expose it through KWindowInfo. Creating an additional NETWinInfo causes an additional x-server roundtrip here. Also a word of warning: just because you have a pid, does not mean that the pid is from the local system. Also remote X clients might have the pid exposed. This means you also need to verify that the window is from the local system. And now the really bad news: that's not trivial. If you want to see a working implementation check kwin/client_machine.cpp. This is the result of about 15 years of KWin experience and trying to figure out correctly whether the window is from the local system without blocking. Yes, over the years we had multiple approaches which could crash, freeze and detect it incorrectly. |
libtaskmanager/xwindowtasksmodel.cpp | ||
---|---|---|
432 | I agree with this. I just removed extra uses of NETWinInfo and would prefer to keep things down to KWindowInfo. |
Can you add the role to WaylandTasksModel::data() with a FIXME comment similar to other ones there? It's useful to me to grep for TODOs.