The n_info initialization is the critical piece. However, "monitor" may go uninitialized for the section at the bottom when the window manager property "data" is updated (so it may work, but may not be quite what you want).
The n_info initialization is the critical piece. However, "monitor" may go uninitialized for the section at the bottom when the window manager property "data" is updated (so it may work, but may not be quite what you want).