mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
swaynag: address some more of sircmpwn's comments
Fixes segfauls for any case where swaynag->outputs was not inititalized including -h/--help, -v/--version, and invalid arguments. Sets sane defaults for colors not given. Any color not given will fallback to the default color values for type error. Adds support for a hidpi cursor
This commit is contained in:
parent
0ef3988438
commit
4f5cf330c8
3 changed files with 41 additions and 29 deletions
|
|
@ -19,6 +19,7 @@ enum swaynag_action_type {
|
|||
|
||||
struct swaynag_pointer {
|
||||
struct wl_pointer *pointer;
|
||||
uint32_t serial;
|
||||
struct wl_cursor_theme *cursor_theme;
|
||||
struct wl_cursor_image *cursor_image;
|
||||
struct wl_surface *cursor_surface;
|
||||
|
|
@ -72,7 +73,7 @@ struct swaynag {
|
|||
struct wl_shm *shm;
|
||||
struct swaynag_pointer pointer;
|
||||
struct zxdg_output_manager_v1 *xdg_output_manager;
|
||||
struct wl_list outputs; // struct swaynag_output
|
||||
struct wl_list outputs; // swaynag_output::link
|
||||
struct swaynag_output *output;
|
||||
struct zwlr_layer_shell_v1 *layer_shell;
|
||||
struct zwlr_layer_surface_v1 *layer_surface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue