add env var to debug battery blink
Chris Lee @klee93
4 files changed,
5 insertions(+),
3 deletions(-)
M
src/battery/battery.c
→
src/battery/battery.c
@@ -408,8 +408,8 @@ battery_full_cmd_sent = FALSE;
} if (!battery_blink_timer.enabled_) { - if (battery_state.percentage < battery_low_status && - battery_state.state == BATTERY_DISCHARGING) { + if ((battery_state.percentage < battery_low_status && + battery_state.state == BATTERY_DISCHARGING) || debug_blink) { change_timer(&battery_blink_timer, true, 10, 1000, blink_battery, 0); battery_warn = TRUE; }
M
src/init.c
→
src/init.c
@@ -107,6 +107,7 @@ debug_dnd = getenv("DEBUG_DND") != NULL;
debug_thumbnails = getenv("DEBUG_THUMBNAILS") != NULL; debug_timers = getenv("DEBUG_TIMERS") != NULL; debug_executors = getenv("DEBUG_EXECUTORS") != NULL; + debug_blink = getenv("DEBUG_BLINK") != NULL; thumb_use_shm = getenv("TINT2_THUMBNAIL_SHM") != NULL; if (debug_fps) { init_fps_distribution();
M
src/panel.c
→
src/panel.c
@@ -60,7 +60,7 @@ gboolean debug_geometry;
gboolean debug_gradients; gboolean startup_notifications; gboolean debug_thumbnails; - +gboolean debug_blink; gboolean panel_autohide; int panel_autohide_show_timeout; int panel_autohide_hide_timeout;
M
src/panel.h
→
src/panel.h
@@ -99,6 +99,7 @@ extern gboolean debug_thumbnails;
extern double ui_scale_dpi_ref; extern double ui_scale_monitor_size_ref; extern gboolean thumb_use_shm; +extern gboolean debug_blink; typedef struct Panel { Area area;