This bug also causes the desktop to be accessible for a split second before the lock screen kicks in when resuming from suspend, c.f https://askubuntu.com/questions/1383379/xubuntu-desktop-visible-after-suspend-before-lock-screen/
I know disabling upower-glib support was frowned upon in the past but modern upower does not handle suspend/resume or lid events (that happens via other systemd components now) and xfce4-settings doesn't need upower for xfce4-power-manager to work properly. Recompiling wihtout upower-glib closes what is essentially a security bug, since the expectation is that resumed systems are locked, and this problem presents a second or two of unrestricted access to the desktop before locking kicks in. I've tested this on a Thinkpad X1 Yoga Titanium and a Thinkpad X1 Yoga Generation 3 (both with Intel graphics) and a Dell Precision 7820 with an AMD WX 5100 card, so I don't think it's nVIDIA specific. Please reconsider --enable-upower-glib. Thanks, khm