swaynag: implement config file support

This commit is contained in:
Brian Ashworth 2018-07-28 09:34:25 -04:00
parent a4f7bf23b2
commit 8463a2896a
10 changed files with 499 additions and 137 deletions

View file

@ -8,6 +8,7 @@
#include "list.h"
#include "swaynag/nagbar.h"
#include "swaynag/render.h"
#include "swaynag/types.h"
#include "wlr-layer-shell-unstable-v1-client-protocol.h"
static void nop() {
@ -386,6 +387,10 @@ void nagbar_destroy(struct sway_nagbar *nagbar) {
free(nagbar->details.button_up.text);
free(nagbar->details.button_down.text);
if (nagbar->type) {
nagbar_type_free(nagbar->type);
}
if (nagbar->layer_surface) {
zwlr_layer_surface_v1_destroy(nagbar->layer_surface);
}