mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
Due to variable substitution and string unescaping, parsing commands necessitates allocation. Because allocation can fail, commands (invoked, via bindings or criteria) may in turn fail when memory is restricted, which is most often the case in anomalous situations (i.e., a memory leak in sway, overcommit disabled, bad config/ipc, etc.). This commit defines a `struct stored_command` in which a parsed command can be stored, and then executed from. Command execution in execute_command now generates a series of struct stored_command, which are promptly invoked by execute_stored_command. |
||
|---|---|---|
| .. | ||
| sway | ||
| swaybar | ||
| swaylock | ||
| swaynag | ||
| background-image.h | ||
| cairo.h | ||
| ipc-client.h | ||
| ipc.h | ||
| list.h | ||
| log.h | ||
| meson.build | ||
| pango.h | ||
| pool-buffer.h | ||
| readline.h | ||
| stringop.h | ||
| unicode.h | ||
| util.h | ||