all repos — tint2 @ 47bc01d608f1fc064572a3de98962fdb19140c59

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Scaling: limit to 8x
o9000 mrovi9000@gmail.com
commit

47bc01d608f1fc064572a3de98962fdb19140c59

parent

0e4b3bd32e0776588e6c8fbf588a91e17adf4fe0

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/panel.csrc/panel.c

@@ -229,6 +229,10 @@ else

p->scale = 1; if (ui_scale_monitor_size_ref > 0) p->scale *= server.monitors[p->monitor].height / ui_scale_monitor_size_ref; + if (p->scale > 8 || p->scale < 1./8) { + fprintf(stderr, RED "tint2: panel %d having scale %g outside bounds, resetting to 1.0" RESET "\n", i + 1, p->scale); + p->scale = 1; + } fprintf(stderr, BLUE "tint2: panel %d uses scale %g " RESET "\n", i + 1, p->scale); if (!p->area.bg) p->area.bg = &g_array_index(backgrounds, Background, 0);