mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
src/keybind.c: move keybind_print() to dbg.c
This commit is contained in:
parent
7440919452
commit
f6578248c0
6 changed files with 14 additions and 16 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "labwc.h"
|
||||
#include "rcxml.h"
|
||||
|
||||
static void show_one_xdg_view(struct view *view)
|
||||
{
|
||||
|
|
@ -72,3 +73,13 @@ void dbg_show_views(struct server *server)
|
|||
wl_list_for_each_reverse (view, &server->views, link)
|
||||
dbg_show_one_view(view);
|
||||
}
|
||||
|
||||
void dbg_show_keybinds()
|
||||
{
|
||||
struct keybind *keybind;
|
||||
wl_list_for_each_reverse (keybind, &rc.keybinds, link) {
|
||||
printf("KEY=%s-", keybind->action);
|
||||
for (size_t i = 0; i < keybind->keysyms_len; i++)
|
||||
printf(" %d\n", keybind->keysyms[i]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue