mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
Don't trust SNI names, fixes #1274
If an item doesn't have a well-formed name, it will not be added to the tray.
This commit is contained in:
parent
13ed84e886
commit
62223e8fbb
3 changed files with 16 additions and 5 deletions
|
|
@ -28,6 +28,7 @@ void sni_icon_ref_free(struct sni_icon_ref *sni_ref);
|
|||
|
||||
/**
|
||||
* Will return a new item and get its icon. (see warning below)
|
||||
* May return `NULL` if `name` is not valid.
|
||||
*/
|
||||
struct StatusNotifierItem *sni_create(const char *name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue