aboutsummaryrefslogtreecommitdiffstats
path: root/swaynag/nagbar.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-28 09:34:25 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-08-01 22:47:54 -0400
commit8463a2896a932cd99f3dc93608b03cb4aba93293 (patch)
treeb8c4ba994cf4d9ca7510d0f80a1864cce144092a /swaynag/nagbar.c
parentAddress first round review for swaynag (diff)
downloadsway-8463a2896a932cd99f3dc93608b03cb4aba93293.tar.gz
sway-8463a2896a932cd99f3dc93608b03cb4aba93293.tar.zst
sway-8463a2896a932cd99f3dc93608b03cb4aba93293.zip
swaynag: implement config file support
Diffstat (limited to 'swaynag/nagbar.c')
-rw-r--r--swaynag/nagbar.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/swaynag/nagbar.c b/swaynag/nagbar.c
index 6647e8c2..a20a9095 100644
--- a/swaynag/nagbar.c
+++ b/swaynag/nagbar.c
@@ -8,6 +8,7 @@
8#include "list.h" 8#include "list.h"
9#include "swaynag/nagbar.h" 9#include "swaynag/nagbar.h"
10#include "swaynag/render.h" 10#include "swaynag/render.h"
11#include "swaynag/types.h"
11#include "wlr-layer-shell-unstable-v1-client-protocol.h" 12#include "wlr-layer-shell-unstable-v1-client-protocol.h"
12 13
13static void nop() { 14static void nop() {
@@ -386,6 +387,10 @@ void nagbar_destroy(struct sway_nagbar *nagbar) {
386 free(nagbar->details.button_up.text); 387 free(nagbar->details.button_up.text);
387 free(nagbar->details.button_down.text); 388 free(nagbar->details.button_down.text);
388 389
390 if (nagbar->type) {
391 nagbar_type_free(nagbar->type);
392 }
393
389 if (nagbar->layer_surface) { 394 if (nagbar->layer_surface) {
390 zwlr_layer_surface_v1_destroy(nagbar->layer_surface); 395 zwlr_layer_surface_v1_destroy(nagbar->layer_surface);
391 } 396 }