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

View file

@ -3,6 +3,7 @@
#include <wlr/util/log.h>
#include "common/spawn.h"
#include "common/zfree.h"
#include "debug.h"
#include "labwc.h"
#include "menu/menu.h"
#include "ssd.h"
@ -161,7 +162,7 @@ action(struct view *activator, struct server *server, struct wl_list *actions, u
}
break;
case ACTION_TYPE_DEBUG:
/* nothing */
debug_dump_scene(server);
break;
case ACTION_TYPE_EXECUTE:
{