Backdrop playback only tracks state of in-focus window.

Hello, recently a very nice QOL feature was added to xfce: video-backdrop for wallpaper.

Merge request for the same: 90a6ae3e

I have been daily driving this exact commit of xfdesktop and have noticed some anomalies. I would like to report the same.

Issue Description

Video backdrop only tracks current active window's fullscreen state.

  1. The support for pausing playback was added in the commit, problem is it tracks the current active window.
  2. If I have a fullscreen window open, and a floating window over it in focus, the background playback for video-backdrop resumes.
  3. Playback stops only when i either: A) switch focus to the fullscreen window or B) maximize the floating window that is in focus.

Steps to Reproduce Issue

  1. Set a video-backdrop.
  2. Open any application and maximize it to fill screen.
  3. Open another application, and make it a floating window.
  4. Monitor playback in task manager, playback should start, xfdesktop starts CPU usage.
  5. Switch focus to fullscreen window.
  6. Playback stops.
  7. Without changing state of fullscreen window (no minimizing or moving window around), switch focus to floating window.
  8. Playback resumes.
  9. It seems xfdesktop is only tracking the current window's state.

Expected Behavior

Backdrop should be paused even if a single window is maximised in current workspace, rather than only tracking in-focus window.

Environment & Versions

  • OS distribution and version: Debian 13 Trixie amd64
  • Overall Xfce version: xfce4/stable,stable,now 4.20.1 all [Packged by debian]
  • xfdesktop version (git hash if not a release):xfdesktop version 4.20.1-dev- 90a6ae3e, running on Xfce 4.20
  • thunar version (if issue related to file/launcher icons): No issues but 4.20.2
  • Windowing system (X11/Wayland): X11
  • Compositor and version (if Wayland): X11, xfwm4
  • GTK Theme: McOS-XFCE-Edition-II-1 [changes gtk3, gtk2, xfwm4, xfce4-notifyd]
  • Icon Theme: GNOME [Default Provided icon set in debian xfce]
  • UI Scale Factor: 1
  • DPI: unchanged default 95

Extra notes:

To compile and use xfdesktop from scratch, I had to also compile the following packages:

libxfce4ui

libxfce4windowing

xfdektop itself

Current items in /usr/local/bin:

aashu@debian:/usr/local/bin$ ls iriunwebcam xfce4-about xfce-open xfdesktop-settings ryzenadj xfce-desktop-item-edit xfdesktop Xrain

Edited by Thunder