mirror of
https://github.com/labwc/labwc.git
synced 2026-02-10 04:27:47 -05:00
menu: reload on SIGHUP
This commit is contained in:
parent
dba27a1019
commit
f0d8eb0a60
4 changed files with 40 additions and 31 deletions
|
|
@ -18,6 +18,8 @@ static struct wl_event_source *sighup_source;
|
|||
static struct wl_event_source *sigint_source;
|
||||
static struct wl_event_source *sigterm_source;
|
||||
|
||||
static struct server *g_server;
|
||||
|
||||
static void
|
||||
reload_config_and_theme(void)
|
||||
{
|
||||
|
|
@ -25,6 +27,8 @@ reload_config_and_theme(void)
|
|||
/* TODO: use rc.config_path */
|
||||
rcxml_read(NULL);
|
||||
theme_read(rc.theme_name);
|
||||
menu_reconfigure();
|
||||
damage_all_outputs(g_server);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
@ -212,6 +216,9 @@ server_init(struct server *server)
|
|||
image->hotspot_y);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* used when handling SIGHUP */
|
||||
g_server = server;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue