raise_on_click state is not restored correctly after logout/login

Env:

  • OS: Void Linux
  • DE: XFCE 4.20
  • Session: X11
  • WM: xfwm4
  • Display server: Xorg

The issue is reproducible on a clean XFCE installation and on the official Void Linux XFCE image.

== Steps to reproduce ==

  1. Start an XFCE X11 session
  2. Open Settings -> Window Manager -> Focus
  3. Enable "Focus follows mouse"
  4. Disable "Raise windows when clicking inside application window"
  5. Confirm that the settings work: maximize one window, open terminal app on top of it, then click the maximized window. The terminal should remain on top
  6. Log out
  7. Log back into XFCE
  8. Repeat step 5

== Actual behavior ==

After logging in again, the setting appears to be disabled, but its behavior is effectively enabled: clicking an inactive window raises it.

The Xfconf value is still correctly stored as false:

/general/raise_on_click false

For example:

xfconf-query -c xfwm4 -p /general/raise_on_click

returns:

false

However, if the setting is toggled once after login (for example false → true → false), it immediately starts behaving correctly again.

So the setting itself works correctly; the problem appears to be that its state is not correctly restored/applied when the XFCE session starts after logout/login.

== Expected behavior ==

The state of raise_on_click should persist across logout/login and be applied automatically when the Xfce session starts.

If /general/raise_on_click is false, clicking an inactive window should not raise it immediately after logging into the session.

== Additional testing ==

The issue is reproducible on a clean Xfce installation and therefore does not appear to depend on my personal configuration.

It is also reproducible on the official Void Linux Xfce image.

I also tested xfwm4 4.18.0 while keeping the rest of the Xfce environment at 4.20. The issue remained unchanged.

This suggests that the issue may not be specific to xfwm4 4.20 itself.