Whenever I start my laptop (with lightDM on debian bullseye), I see 100% cpu usage. "top" shows, that it is xfwm4, that uses the whole CPU. I need to "killall xfwm4" and then "xfwm4" to restart it. After this it is normal (very small cpu usege). It is very annoying. It goes on for some time now (2 months maybe). I have a PC with the same setup and it works properly.
Best would be to determine where it sends its time. First, make sure you have the debug symbols installed, and capture the output of "gstack $(pidof xfwm4)" a few times in a a raw and attach the results here. (gstack comes with gdb)
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfwm4/-/issues/365. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev