mirror of
https://github.com/swaywm/sway.git
synced 2025-11-20 06:59:46 -05:00
swaynag: implement config file support
This commit is contained in:
parent
a4f7bf23b2
commit
8463a2896a
10 changed files with 499 additions and 137 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue