Add debug_dump_scene()

Dump view_tree and osd_tree on calling debug-action. Example bind:

<keybind key="A-F12">
  <action name="Debug"></action>
</keybind>
This commit is contained in:
Johan Malm 2022-02-12 19:43:32 +00:00
parent 532656ad5b
commit 5934ed6682
5 changed files with 69 additions and 1 deletions

9
include/debug.h Normal file
View file

@ -0,0 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __DEBUG_H
#define __DEBUG_H
struct server;
void debug_dump_scene(struct server *server);
#endif /* __DEBUG_H */

View file

@ -173,6 +173,7 @@ struct server {
struct view *cycle_view;
struct theme *theme;
struct menu *rootmenu;
struct menu *windowmenu;
};
@ -476,6 +477,7 @@ void server_start(struct server *server);
void server_finish(struct server *server);
/* update onscreen display 'alt-tab' buffer */
void osd_finish(struct server *server);
void osd_update(struct server *server);
/*