Conf: Fix multi mouse section of titlebar

This commit is contained in:
Martin Duquesnoy 2010-04-13 20:49:42 +02:00
parent b4705bbaa7
commit 9a38a64ced

View File

@ -281,13 +281,14 @@ conf_client_section(void)
mouse = fetch_section(titlebar[0], "mouse");
for(n = 0; sec[n]; n++);
for(n = 0; mouse[n]; n++);
if((conf.titlebar.nmouse = n) > 0)
{
conf.titlebar.mouse = emalloc(conf.titlebar.nmouse, sizeof(MouseBinding));
mouse_section(conf.titlebar.mouse, n, mouse);
}
free(mouse);
/* Multi button part */