mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-03 01:40:17 -05:00
user-notification: 'productify' the user-warning system
* Rename user_warning to user_notification * Add warning and error types (in addition to the existing deprecated) * Simplify logic when emitting a user notification after forking; we don't need to copy the notification data since we're in a new process and have total control over that memory.
This commit is contained in:
parent
79c17f44d9
commit
f6533a71e4
8 changed files with 127 additions and 62 deletions
3
config.h
3
config.h
|
|
@ -6,6 +6,7 @@
|
|||
#include <tllist.h>
|
||||
|
||||
#include "terminal.h"
|
||||
#include "user-notification.h"
|
||||
#include "wayland.h"
|
||||
|
||||
struct config_font {
|
||||
|
|
@ -123,7 +124,7 @@ struct config {
|
|||
off_t max_shm_pool_size;
|
||||
} tweak;
|
||||
|
||||
user_warning_list_t warnings;
|
||||
user_notifications_t notifications;
|
||||
};
|
||||
|
||||
bool config_load(struct config *conf, const char *path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue