D5747: add pid to plasma window management protocol

2017-06-07 Thread Sebastian Kügler
sebas closed this revision. sebas added a comment. Issue has been fixed elsewhere, otherwise code is submitted. REPOSITORY R127 KWayland REVISION DETAIL https://phabricator.kde.org/D5747 To: sebas, #plasma, hein, graesslin Cc: apol, davidedmundson, plasma-devel, #frameworks, ZrenBot, sps

D5747: add pid to plasma window management protocol

2017-05-14 Thread Eike Hein
hein added a comment. FWIW I did run make test on an earlier revision of the patch during the sprint while doing work on top of it; it must have regressed after. REPOSITORY R127 KWayland REVISION DETAIL https://phabricator.kde.org/D5747 To: sebas, #plasma, hein, graesslin Cc: apol, davi

D5747: add pid to plasma window management protocol

2017-05-13 Thread Martin Flöser
graesslin reopened this revision. graesslin added a comment. This revision is now accepted and ready to land. Can reproduce the failing test locally. Please fix ASAP! Broken tests is not acceptable in KWayland. This change has been on review so long, I find it quite disappointing that it was

D5747: add pid to plasma window management protocol

2017-05-13 Thread Eike Hein
hein added a comment. testPid is failing: https://build.kde.org/job/kwayland%20master%20kf5-qt5/204/PLATFORM=Linux,compiler=gcc/testReport/junit/(root)/TestSuite/kwayland_testPlasmaWindowModel/ REPOSITORY R127 KWayland REVISION DETAIL https://phabricator.kde.org/D5747 To: sebas, #plasma

D5747: add pid to plasma window management protocol

2017-05-13 Thread Sebastian Kügler
This revision was automatically updated to reflect the committed changes. Closed by commit R127:0b4d8a7fc1df: add pid to plasma window management protocol (authored by sebas). REPOSITORY R127 KWayland CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D5747?vs=14442&id=14463 REVISION DET

D5747: add pid to plasma window management protocol

2017-05-12 Thread Martin Flöser
graesslin accepted this revision. This revision is now accepted and ready to land. REPOSITORY R127 KWayland BRANCH sebas/processid REVISION DETAIL https://phabricator.kde.org/D5747 To: sebas, #plasma, hein, graesslin Cc: apol, davidedmundson, plasma-devel, #frameworks, ZrenBot, spstarr,

D5747: add pid to plasma window management protocol

2017-05-12 Thread Sebastian Kügler
sebas updated this revision to Diff 14442. sebas added a comment. Restricted Application edited projects, added Plasma on Wayland; removed Plasma. - Update docs: the pid is just set, but doesn't logically change - ws-- REPOSITORY R127 KWayland CHANGES SINCE LAST UPDATE https://phabricat

D5747: add pid to plasma window management protocol

2017-05-12 Thread Martin Flöser
graesslin requested changes to this revision. graesslin added inline comments. This revision now requires changes to proceed. INLINE COMMENTS > plasmawindowmodel.cpp:84 > > + > QObject::connect(window, &PlasmaWindow::activeChanged, q, Unrelated newline > plasma-window-management.xml:263

D5747: add pid to plasma window management protocol

2017-05-12 Thread Eike Hein
hein accepted this revision. REPOSITORY R127 KWayland REVISION DETAIL https://phabricator.kde.org/D5747 To: sebas, #plasma, hein, graesslin Cc: apol, davidedmundson, plasma-devel, #frameworks, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, lukas

D5747: add pid to plasma window management protocol

2017-05-11 Thread Martin Flöser
graesslin added a comment. In https://phabricator.kde.org/D5747#108916, @apol wrote: > Who is going to be setting this pid? Because note that containerized applications don't know their own pid (see kdbusaddons & knotifications patches for big shrug). It's KWin. Who gets the info

D5747: add pid to plasma window management protocol

2017-05-11 Thread Aleix Pol Gonzalez
apol added a comment. Who is going to be setting this pid? Because note that containerized applications don't know their own pid (see kdbusaddons & knotifications patches for big shrug). $ docker run ubuntu:17.04 pidof pidof 1 $ pidof pidof 6940 REPOSITORY R127 KWayland

D5747: add pid to plasma window management protocol

2017-05-11 Thread Eike Hein
hein added a dependent revision: D5818: Lift app identification heuristic out of XWindowTasksModel and share it with WaylandTasksModel.. REPOSITORY R127 KWayland REVISION DETAIL https://phabricator.kde.org/D5747 To: sebas, #plasma, hein, graesslin Cc: davidedmundson, plasma-devel, #framewor

D5747: add pid to plasma window management protocol

2017-05-11 Thread Sebastian Kügler
sebas updated this revision to Diff 14418. sebas added a comment. Restricted Application edited projects, added Plasma; removed Plasma on Wayland. - Drop pid change handling in the model code - Extend model test --Eike on sebas' box REPOSITORY R127 KWayland CHANGES SINCE LAST UPDATE

D5747: add pid to plasma window management protocol

2017-05-11 Thread Martin Flöser
graesslin added inline comments. INLINE COMMENTS > test_plasma_window_model.cpp:215 > > void PlasmaWindowModelTest::testRoleNames_data() > { Please extend this REPOSITORY R127 KWayland REVISION DETAIL https://phabricator.kde.org/D5747 To: sebas, #plasma, hein, graesslin Cc: davidedmun

D5747: add pid to plasma window management protocol

2017-05-11 Thread Martin Flöser
graesslin added inline comments. INLINE COMMENTS > plasmawindowmodel.cpp:84-86 > +QObject::connect(window, &PlasmaWindow::pidChanged, q, > +[window, this] { this->dataChanged(window, PlasmaWindowModel::Pid); } > +); I consider it as impossible that the PID changes. REPOSITORY

D5747: add pid to plasma window management protocol

2017-05-11 Thread Sebastian Kügler
sebas updated this revision to Diff 14410. sebas added a comment. Restricted Application edited projects, added Plasma on Wayland; removed Plasma. - also test default REPOSITORY R127 KWayland CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D5747?vs=14407&id=14410 BRANCH sebas/pro

D5747: add pid to plasma window management protocol

2017-05-11 Thread Sebastian Kügler
sebas updated this revision to Diff 14407. sebas marked 3 inline comments as done. sebas added a comment. Restricted Application edited projects, added Plasma; removed Plasma on Wayland. Address review comments - Minor corrections in docs - Use uint for the pid - uint32 for pids instea

D5747: add pid to plasma window management protocol

2017-05-11 Thread Eike Hein
hein added a dependent revision: D5812: Add missing block to make sure initial pid is sent. REPOSITORY R127 KWayland REVISION DETAIL https://phabricator.kde.org/D5747 To: sebas, #plasma, hein, graesslin Cc: davidedmundson, plasma-devel, #frameworks, ZrenBot, spstarr, progwolff, lesliezhai,

D5747: add pid to plasma window management protocol

2017-05-07 Thread Eike Hein
hein added a dependent revision: D5756: Set pid on the ClientConnection backing the PlasmaWindow surface.. REPOSITORY R127 KWayland REVISION DETAIL https://phabricator.kde.org/D5747 To: sebas, #plasma, hein, graesslin Cc: davidedmundson, plasma-devel, #frameworks, ZrenBot, spstarr, progwolf

D5747: add pid to plasma window management protocol

2017-05-07 Thread Eike Hein
hein added a dependent revision: D5755: Expose PlasmaWindow::pid through WaylandTasksModel.. REPOSITORY R127 KWayland REVISION DETAIL https://phabricator.kde.org/D5747 To: sebas, #plasma, hein, graesslin Cc: davidedmundson, plasma-devel, #frameworks, ZrenBot, spstarr, progwolff, lesliezhai

D5747: add pid to plasma window management protocol

2017-05-07 Thread Martin Flöser
graesslin requested changes to this revision. graesslin added a comment. This revision now requires changes to proceed. Please also extend the autotests/client/test_wayland_windowmanagement.cpp INLINE COMMENTS > plasmawindowmanagement.h:385 > + * @returns The process id this window belong

D5747: add pid to plasma window management protocol

2017-05-07 Thread David Edmundson
davidedmundson added inline comments. INLINE COMMENTS > plasma-window-management.xml:267 > + > + > + uint is a native type: https://wayland.freedesktop.org/docs/html/ch04.html#sect-Protocol-Wire-Format you don't need to do an implicit cast REPOSITORY R127 KWayland REVISION

D5747: add pid to plasma window management protocol

2017-05-07 Thread Sebastian Kügler
sebas created this revision. Restricted Application added projects: Plasma on Wayland, Frameworks. Restricted Application added subscribers: Frameworks, plasma-devel. REVISION SUMMARY This patch adds a pid event to the plasma window management protocol. It allows the compositor to tell allow a