diff options
Diffstat (limited to 'src/nvim/grid_defs.h')
-rw-r--r-- | src/nvim/grid_defs.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/nvim/grid_defs.h b/src/nvim/grid_defs.h index 37d85ead0c..d9ccdbbdab 100644 --- a/src/nvim/grid_defs.h +++ b/src/nvim/grid_defs.h @@ -1,6 +1,8 @@ #ifndef NVIM_GRID_DEFS_H #define NVIM_GRID_DEFS_H +#include <stdbool.h> +#include <stddef.h> #include <stdint.h> #include "nvim/types.h" @@ -49,11 +51,14 @@ typedef struct { int row_offset; int col_offset; - // grid size requested by the UI. Used for window grids only. - int requested_rows; - int requested_cols; - - int was_resized; + // state owned by the compositor. + int comp_row; + int comp_col; + size_t comp_index; + bool comp_disabled; } ScreenGrid; +#define SCREEN_GRID_INIT { 0, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, \ + false } + #endif // NVIM_GRID_DEFS_H |