xfwm4 causes high Xorg CPU usage and sluggish UI
I'm using xfwm4-4.16.1 in VMware. After a few days, the UI become sluggish, and the CPU usage of Xorg is 60-70% from top, the `GetXIDRange` is 10%-30% from perf top. Besides, from the xrestop, the Misc resource of xfwm4 is 135579. ``` res-base Wins GCs Fnts Pxms Misc Pxm mem Other Total PID Identifier 0400000 171 4 1 274 135579 38504K 3182K 41687K 2720 xfwm4 ``` I tried to trace `GetXIDRange` and `XFixesCreateRegion` by bpftrace, It seems that these functions were called very frequently, might saying infinite. I saved a snapshot in VMware for debugging, and restart the xfwm4, the above exceptions will disappear, and cannot reproduce again. Does it appear to be a performance issue caused by X resource leakage? Can anyone help take a look or provide some suggestions to fix it? Thanks a lot\~
issue