Closed AlexJakeGreen closed 1 year ago
This looks weird:
connect_sial
↔ connect_signal
keyboard_focus_changed
↔ keyboard_focus_chaed
disconnectignal
↔ disconnect_signal
I'll try to reproduce over this weekend
I was still on the api0.8 branch I see, in master the "typos" are gone but basically it's the same:
./src/kbdd.cpp:63:9: error: ‘signal_connection_t’ in namespace ‘wf’ does not name a type
63 | wf::signal_connection_t keyboard_focus_changed = [=] (wf::signal_data_t *data) {
| ^~~~~~~~~~~~~~~~~~~
../src/kbdd.cpp: In member function ‘virtual void kbdd_plugin::init()’:
../src/kbdd.cpp:88:24: error: ‘class wf::compositor_core_t’ has no member named ‘connect_signal’
88 | wf::get_core().connect_signal("keyboard-focus-changed", &keyboard_focus_changed);
| ^~~~~~~~~~~~~~
../src/kbdd.cpp:88:66: error: ‘keyboard_focus_changed’ was not declared in this scope
88 | wf::get_core().connect_signal("keyboard-focus-changed", &keyboard_focus_changed);
| ^~~~~~~~~~~~~~~~~~~~~~
../src/kbdd.cpp: In member function ‘virtual void kbdd_plugin::fini()’:
../src/kbdd.cpp:92:24: error: ‘class wf::compositor_core_t’ has no member named ‘disconnect_signal’
92 | wf::get_core().disconnect_signal(&keyboard_focus_changed);
| ^~~~~~~~~~~~~~~~~
../src/kbdd.cpp:92:43: error: ‘keyboard_focus_changed’ was not declared in this scope
92 | wf::get_core().disconnect_signal(&keyboard_focus_changed);
| ^~~~~~~~~~~~~~~~~~~~~~c
ninja: build stopped: subcommand failed.
Thank you for checking.
I found that API was changed in this commit https://github.com/WayfireWM/wayfire/commit/34cf0b45cb9c30920edacbbd9bccfcd25e0ac6b8
Thanks a lot for your work!
Originally posted by @stefonarch in https://github.com/AlexJakeGreen/wayfire-kbdd-plugin/issues/6#issuecomment-1401528303