Peek a window by hovering it in the window list (fade the other windows)

When several windows of the same application are open (for example a few Firefox or terminal windows), the preview thumbnails are often too small to tell which window is which. Windows' taskbar handles this with "peek": hovering a thumbnail shows that window and turns every other window transparent until the pointer leaves.

I'd like to propose the same behaviour for docklike, as an option that is off by default:

  • New setting in the Behavior tab: "Fade other windows when hovering a window in the list".
  • While the pointer is over an item in the window list, every other normal window on the current workspace gets _NET_WM_WINDOW_OPACITY set to about 6%, so the hovered window is visible wherever it sits in the stack. Dock and desktop windows and minimized windows are left alone.
  • On leave (with a 150 ms grace period so moving between items doesn't flicker), on click, and when the list closes, each window gets back exactly the opacity it had before. If it had no opacity property, the property is removed, so a user's own per-window opacity is never lost.
  • It needs a compositing window manager (xfwm4 with compositing on). It is X11-only like the preview thumbnails. On Wayland the option is hidden and the code does nothing.

I have a working implementation (one new file src/Peek.cpp, small hooks in GroupMenuItem.cpp and GroupMenu.cpp, plus the setting and checkbox). I've been running it on Xubuntu 26.04 (xfwm4 with compositing) on top of docklike 0.5.1. I've also built it on current master and tested it there, including toggling the new option on and off in the settings dialog. It passes the clang-format and constants checks from .gitlab-ci.yml. Would you be open to a merge request for this?

AI disclosure: Written by Claude Opus 5.5. Tested and reviewed by me.