feat(client): add current_scale field to Client and LayerSurface structs

- Add float current_scale to Client struct (HOT section, after corner_radius)
- Add float current_scale to LayerSurface struct (HOT section, after mapped)
- Add config scale range validation [0.25, 4.0] with fprintf warnings
This commit is contained in:
2026-07-05 21:32:22 -04:00
parent 720f3e7136
commit 8b91bc939c
4 changed files with 35 additions and 0 deletions
+2
View File
@@ -46,6 +46,7 @@ typedef struct Client {
struct wlr_box bounds; /* only width and height are used */
unsigned int bw;
int corner_radius;
float current_scale;
struct wlr_scene_shadow *shadow;
struct wlr_scene_blur *blur;
@@ -96,6 +97,7 @@ typedef struct {
struct wlr_scene_tree *popups;
struct wlr_scene_layer_surface_v1 *scene_layer;
int mapped;
float current_scale;
struct wlr_layer_surface_v1 *layer_surface;
/* WARM */