Support a very simple root-menu

This commit is contained in:
Johan Malm 2020-10-19 22:14:17 +01:00
parent f49a3a0395
commit dc5d1ab976
9 changed files with 255 additions and 36 deletions

View file

@ -3,6 +3,7 @@
#include "labwc.h"
#include "theme/theme.h"
#include "xbm/xbm.h"
#include "menu/menu.h"
#include <cairo.h>
#include <pango/pangocairo.h>
@ -61,6 +62,10 @@ main(int argc, char *argv[])
theme_read(rc.theme_name);
xbm_load(server.renderer);
struct menu menu = { 0 };
menu_init(&server, &menu);
server.rootmenu = &menu;
session_autostart_init();
if (startup_cmd) {
spawn_async_no_shell(startup_cmd);