add requestToggleKeepAbove/below
ClosedPublic

Authored by mart on May 8 2017, 9:34 AM.

Details

Summary

client requests to toggle those states, to be used by libtaskmanager

Test Plan

setting keep above from the taskbar works

Diff Detail

Repository
R127 KWayland
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mart created this revision.May 8 2017, 9:34 AM
Restricted Application added projects: Plasma on Wayland, Frameworks. · View Herald TranscriptMay 8 2017, 9:34 AM
Restricted Application added subscribers: Frameworks, plasma-devel. · View Herald Transcript
hein added a subscriber: hein.May 8 2017, 10:08 AM
hein added inline comments.
src/client/plasmawindowmanagement.h
413

All these need @since

hein requested changes to this revision.May 8 2017, 10:12 AM
This revision now requires changes to proceed.May 8 2017, 10:12 AM
mart updated this revision to Diff 14273.May 8 2017, 10:13 AM
mart edited edge metadata.
  • since 5.35
Restricted Application edited projects, added Plasma; removed Plasma on Wayland. · View Herald TranscriptMay 8 2017, 10:13 AM
hein requested changes to this revision.May 8 2017, 10:16 AM

You also still need to extend PlasmaWindowModel and the unit tests. Everywhere in the kwayland codebase requestToggleMinimized pops up should also have a codepath for these new ones.

This revision now requires changes to proceed.May 8 2017, 10:16 AM
mart updated this revision to Diff 14276.May 8 2017, 10:37 AM
mart edited edge metadata.

autotest

Restricted Application edited projects, added Plasma on Wayland; removed Plasma. · View Herald TranscriptMay 8 2017, 10:37 AM
graesslin requested changes to this revision.May 8 2017, 4:03 PM
graesslin added a subscriber: graesslin.

Please also extend the test in autotests/client/test_wayland_windowmanagement.cpp

This revision now requires changes to proceed.May 8 2017, 4:03 PM
mart added a comment.May 8 2017, 5:15 PM

Please also extend the test in autotests/client/test_wayland_windowmanagement.cpp

isn't it covered by
QTest::newRow("keepAbove") << &PlasmaWindowInterface::keepAboveRequested << int(ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_KEEP_ABOVE);

QTest::newRow("keepBelow") << &PlasmaWindowInterface::keepBelowRequested << int(ORG_KDE_PLASMA_WINDOW_MANAGEMENT_STATE_KEEP_BELOW);

what do i need to add?

mart updated this revision to Diff 14320.May 8 2017, 9:48 PM
mart edited edge metadata.
  • since 5.35
Restricted Application edited projects, added Plasma; removed Plasma on Wayland. · View Herald TranscriptMay 8 2017, 9:48 PM
In D5757#108115, @mart wrote:

Please also extend the test in autotests/client/test_wayland_windowmanagement.cpp

isn't it covered by

no, that is a test for the Model. The test for the actual interface is in test_wayland_windowmanagement. That test goes more into the detail of how the interface works. Things we cannot test with the test for the model which only can cover one specific branch.

graesslin requested changes to this revision.May 9 2017, 4:53 AM
This revision now requires changes to proceed.May 9 2017, 4:53 AM
hein added a comment.May 11 2017, 10:49 AM

Martin, did you mix things up here maybe? The patch has changes to autotests/client/test_wayland_windowmanagement.cpp. The "newRow" bit isn't related to QAIM. It's a row of test data.

graesslin added inline comments.May 11 2017, 3:06 PM
autotests/client/test_plasma_window_model.cpp
215

Please extend this

308

Please extend this

Forget my last two comments - confused the review

In D5757#108706, @hein wrote:

Martin, did you mix things up here maybe? The patch has changes to autotests/client/test_wayland_windowmanagement.cpp. The "newRow" bit isn't related to QAIM. It's a row of test data.

no, I answered Marco's question why we need to add code to both tests.

hein added a comment.May 11 2017, 3:51 PM

Well my point was that the patch does add code to both tests (modulo the things you asked to be extended now).

Your tests in plasma window management do not test the new requests.

autotests/client/test_wayland_windowmanagement.cpp
485

copy and paste error

507

copy and paste error

mart updated this revision to Diff 14581.May 16 2017, 8:34 AM
mart edited edge metadata.
  • fix comment
Restricted Application edited projects, added Plasma on Wayland; removed Plasma. · View Herald TranscriptMay 16 2017, 8:34 AM
mart updated this revision to Diff 14582.May 16 2017, 8:35 AM
  • fix comment
Restricted Application edited projects, added Plasma; removed Plasma on Wayland. · View Herald TranscriptMay 16 2017, 8:35 AM
mart marked 2 inline comments as done.May 16 2017, 8:35 AM
hein accepted this revision.May 23 2017, 4:52 PM
This revision was automatically updated to reflect the committed changes.