Closed dkondor closed 3 years ago
@wmww Ack on merging the wlr-protocols PR?
Now that the upstream PR has merged I'll give this a full review when I have time. These don't block my initial review, but they will need to be done before merging:
P.S. let me know if anything about writing tests could be documented better.
Now that the upstream PR has merged I'll give this a full review when I have time. These don't block my initial review, but they will need to be done before merging:
* Pull in the final version of the layer shell protocol
Done already :)
* Remove the new example (we don't need individual examples for every feature, adding interactivity support to the demo is enough)
I'm not sure what you mean; the new files are part of the demo, just separated for clarity (I can merge them with one of the other ones).
* Add integration tests (see [test-set-keyboard-interactivity.c](https://github.com/wmww/gtk-layer-shell/blob/master/test/integration-tests/test-set-keyboard-interactivity.c), [test-get-keyboard-interactivity.c](https://github.com/wmww/gtk-layer-shell/blob/master/test/integration-tests/test-get-keyboard-interactivity.c) for examples, and [test/README.md](https://github.com/wmww/gtk-layer-shell/blob/master/test/README.md) for full test documentation (though you shouldn't need to understand most of it))
I did a first try at this by adding the following two files: test/integration-tests/test-get-keyboard-interactivity-types.c test/integration-tests/test-set-keyboard-interactivity-types.c
To make this work, I had to update the mock server to advertise version 4 of the protocol. I'm wondering if there should be an extra test that gtk-layer-shell behaves as expected on a lower server version and if that's easily achievable with the current setup.
Also, I'm marking this ready for review since the protocol and wlroots PRs have merged and the main functionality is implemented.
I'm not sure what you mean...
Either the thing I was talking about was removed or I was just confused. Either way it's fine now.
All right as you can see I've added a bunch of changes, including notably changing the names from "keyboard_interactivity_type" to "keyboard_mode". That diverges from the protocol terminology, but I think it's a little clearer, much shorter and less likely to be confused with the deprecated functions. Much appreciated if you want to give the PR a review in it's current state. It seems ready to merge to me.
All seems good, I've only added a minor edit in one place where the documentation was inconsistent.
Otherwise, I've just tested a bit and seems to work well.
Awesome! Thanks!
Support more settings for keyboard interactivity, according to the changes suggested to the protocol here: https://github.com/swaywm/wlr-protocols/pull/100
By opening this pull request, I agree for my modifications to be licensed under whatever licenses are indicated at the start of the files I modified