Panel kitten: Add option to hide panel on focus loss

This commit is contained in:
Kovid Goyal
2025-04-30 07:46:41 +05:30
parent df052edae8
commit edcfd17ca9
10 changed files with 46 additions and 21 deletions

2
glfw/glfw3.h vendored
View File

@@ -1314,7 +1314,7 @@ typedef struct GLFWLayerShellConfig {
unsigned x_size_in_cells, x_size_in_pixels;
unsigned y_size_in_cells, y_size_in_pixels;
int requested_top_margin, requested_left_margin, requested_bottom_margin, requested_right_margin;
int requested_exclusive_zone;
int requested_exclusive_zone, hide_on_focus_loss;
unsigned override_exclusive_zone;
void (*size_callback)(GLFWwindow *window, float xscale, float yscale, unsigned *cell_width, unsigned *cell_height, double *left_edge_spacing, double *top_edge_spacing, double *right_edge_spacing, double *bottom_edge_spacing);
struct { float xscale, yscale; } expected;