linux-surface / iptsd

Userspace daemon for Intel Precise Touch & Stylus
GNU General Public License v2.0
86 stars 39 forks source link

apps: visualization: Handle window events properly #150

Closed iwanders closed 6 months ago

iwanders commented 6 months ago

Quick drive by PR to prevent the windows from being marked as unresponsive. This adds an event handler in the on data callback. I also tried setting the hints from here, but I'm on Wayland and those hints don't work. This works reliably.

So without this, I get this window after 5 seconds (Gnome 45, Wayload, NixOS 23.11).

Screenshot from 2023-12-23 15-24-55

iwanders commented 6 months ago

(force pushed to move the additions to be above the FPS variables instead of in between >_<)

StollD commented 6 months ago

Thank you!