mihirlad55 / polybar-dwm-module

A dwm module for polybar
MIT License
116 stars 15 forks source link

Add buffered input handling / rate limiting #15

Open mihirlad55 opened 4 years ago

mihirlad55 commented 4 years ago

Scroll handlers in particular can be triggered at a rapid rate causing a high rate of messages being sent and received over IPC with dwm. This can cause a connection timeout and break the module. The input handling should be restructured for this.

Messages should maybe be limited to something like 10/s and view commands in particular should be sent only once per 100ms. This can be done by summing the number of view requests and then sending the calculated output after 100ms is up.