screen: make ui_compositor aware of the intended size of a float

This commit is contained in:
chentau
2021-03-02 22:44:44 -08:00
parent c50b737d6f
commit 8fe19d9d89
5 changed files with 174 additions and 5 deletions

View File

@@ -76,6 +76,12 @@ typedef struct {
int comp_row;
int comp_col;
// Requested width and height of the grid upon resize. Used by
// `ui_compositor` to correctly determine which regions need to
// be redrawn.
int comp_width;
int comp_height;
// z-index of the grid. Grids with higher index is draw on top.
// default_grid.comp_index is always zero.
size_t comp_index;
@@ -86,6 +92,6 @@ typedef struct {
} ScreenGrid;
#define SCREEN_GRID_INIT { 0, NULL, NULL, NULL, NULL, NULL, 0, 0, false, \
false, 0, 0, false, true, 0, 0, 0, false }
false, 0, 0, false, true, 0, 0, 0, 0, 0, false }
#endif // NVIM_GRID_DEFS_H