feat: add dpi detection and configuration for mouse distance
This commit is contained in:
@@ -39,6 +39,7 @@ struct Config {
|
||||
int panel_height;
|
||||
int gap;
|
||||
char font_name[128];
|
||||
double mouse_distance_dpi;
|
||||
ColorScheme colors;
|
||||
|
||||
float default_master_ratio;
|
||||
|
||||
@@ -215,6 +215,9 @@ typedef struct {
|
||||
int last_mouse_x;
|
||||
int last_mouse_y;
|
||||
bool mouse_tracking_initialized;
|
||||
|
||||
double pixels_per_cm;
|
||||
bool dpi_auto_detected;
|
||||
} DWNState;
|
||||
|
||||
#define PHASE_OFFSET_PANEL_BG 0.0f
|
||||
|
||||
Reference in New Issue
Block a user