Skip to content

[Bug]: Full-screen recording fails on Ubuntu KDE Plasma (X11) – OpenScreen captures individual windows instead of the entire display #1629

Open

Description

@shivamkumar359

Search existing issues

  • I have searched the existing issues

Describe the bug

Describe the bug

I am experiencing an issue with full-screen recording on OpenScreen 2.3.0 running on Ubuntu Linux with KDE Plasma using an X11 session.

OpenScreen detects my monitor and lists it as an available recording source. However, when I attempt to record the entire screen, the application does not capture the complete desktop correctly. Instead, it appears to capture an individual application window.

When I try to select or record the entire screen, I also encounter the following error:

"The selected X11 window is no longer available."

Initially, I also experienced problems with mouse tracking. After troubleshooting, I can now observe mouse movement, but the full-screen recording problem remains unresolved.

This makes it difficult to record desktop activity, software demonstrations, programming tutorials, and workflows involving multiple application windows.

Expected behavior

  1. OpenScreen should detect the connected monitor.
  2. I should be able to select the entire desktop rather than an individual application window.
  3. The recording should capture the complete 1920 × 1080 display.
  4. Switching between applications should not interrupt or restrict the recording.
  5. Mouse movement should be tracked correctly during recording.
  6. The recording should continue even when I switch between Firefox, the terminal, and other desktop applications.

Actual behavior

  1. OpenScreen detects the monitor and lists it as Entire screen.
  2. Individual application windows are also detected.
  3. The recording appears to be restricted to a particular application window instead of the complete desktop.
  4. Selecting or attempting to record the entire screen produces the error: The selected X11 window is no longer available.
  5. Mouse movement can now be observed, but full-screen recording still does not work correctly.

System information

Operating System: Ubuntu Linux 24.04 LTS

Desktop Environment: KDE Plasma

Display Server: X11 (X.Org)

KDE Window Manager: KWin X11

OpenScreen Version: 2.3.0

Installation Method: Official Debian package (.deb)

Display Resolution: 1920 × 1080

Display Refresh Rate: 144 Hz

Display Identifier: eDP-1

Graphics Hardware: NVIDIA GeForce RTX 3050 Laptop GPU (6 GB VRAM)

NVIDIA Driver Package: 580-open

Diagnostic information

I verified that the X11 display is accessible.

Command:

echo $DISPLAY

Output:

:0

I also checked the X11 server:

Command:

xdpyinfo

Relevant output:

X.Org version: 21.1.11

The display configuration is detected correctly.

Command:

xrandr --query

Relevant output:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384

eDP-1 connected primary 1920x1080+0+0

I checked OpenScreen's available recording sources.

Command:

openscreen sources

Output:

Displays:
0 Entire screen (screen:383:0)

Windows:
- Applications : bash
- NVIDIA Driver Installation Status — Mozilla Firefox

Microphones:
- Default
- Built-in Audio Analog Stereo

Cameras:
- Integrated Camera (04f2:b7b9)

This confirms that OpenScreen can discover the entire display as a source, but the actual recording behaviour does not match the expected full-screen capture.

PipeWire and desktop portal diagnostics

PipeWire is installed and running.

Command:

systemctl --user status pipewire

Result:

Active: active (running)

The desktop portal is also running.

Command:

systemctl --user status xdg-desktop-portal

Result:

Active: active (running)

The GTK portal backend is running:

xdg-desktop-portal-gtk.service

The KDE portal package is installed:

xdg-desktop-portal-kde 5.27.11-0ubuntu3

However, checking its service directly returns:

Unit xdg-desktop-portal-kde.service could not be found.

The desktop portal log also contains:

Choosing gtk.portal for org.freedesktop.impl.portal

I verified that the ScreenCast interface is exposed:

org.freedesktop.portal.ScreenCast interface

Relevant system logs

I found the following message in the KDE window manager logs:

kwin_x11: XCB error: 152 (BadDamage)

This may or may not be related to the recording issue, but I am including it for debugging purposes.

Troubleshooting already performed

I have already attempted the following:

  1. Verified that the desktop session is running on X11.
  2. Verified that $DISPLAY is set to :0.
  3. Checked X11 accessibility using xdpyinfo.
  4. Checked the connected monitor using xrandr.
  5. Verified that PipeWire is running.
  6. Verified that xdg-desktop-portal is running.
  7. Verified that the GTK portal backend is running.
  8. Verified that the ScreenCast D-Bus interface is available.
  9. Checked OpenScreen's recording sources using openscreen sources.
  10. Restarted OpenScreen and attempted to select the entire screen again.

Despite these checks, the full-screen recording problem persists.

Additional information

I am using a laptop with a single built-in display. No external monitor is connected.

The monitor is detected as:

eDP-1

The display resolution is:

1920 × 1080

The issue is particularly problematic because I need to record the entire desktop while switching between different applications, rather than recording only one application window.

Questions for the developers

  1. Is full-screen X11 recording fully supported in OpenScreen 2.3.0 on KDE Plasma?
  2. Can the ScreenCast portal cause OpenScreen to capture an individual window instead of the entire monitor on an X11 session?
  3. Is there a known compatibility issue between KDE Plasma's KWin X11 compositor and OpenScreen's Linux capture backend?
  4. Could the BadDamage XCB error be related to the full-screen capture failure?
  5. Is there a recommended configuration or workaround for full-screen recording on Ubuntu KDE Plasma using X11?

I would appreciate help identifying the cause and a possible fix.

Expected behavior

Expected Behaviour

  1. OpenScreen should correctly detect and allow me to select my entire desktop screen (1920 × 1080), not just an individual application window.

  2. When I select the Entire Screen recording option, OpenScreen should capture the complete desktop, including the taskbar, desktop background, open applications, and other visible desktop elements.

  3. Screen recording should continue seamlessly when I switch between different applications, such as Firefox, the terminal, and other windows.

  4. The recording should not be restricted to the currently active application window.

  5. Mouse pointer movement and mouse clicks should be captured correctly throughout the recording.

  6. OpenScreen should maintain a stable screen-capture session without displaying errors such as "The selected X11 window is no longer available."

  7. Full-screen recording should work reliably on Ubuntu 24.04 with KDE Plasma running an X11 session.

To Reproduce

No response

Screenshots

image

OS

Linux

OS Version

Kubuntu 24.04 LTS

Other OS

No response

Browser

Firefox

Browser Version

157.0

Other Browser

No response

Device Type

Laptop

Other Device

No response

Additional context

Linux Distribution: Kubuntu 24.04 LTS
Desktop Environment: KDE Plasma
Window Manager: KWin
Display Server: X11
X.Org Version: 21.1.11
Screen Resolution: 1920 × 1080 (144 Hz)
OpenScreen Version: 2.3.0

Activity

  1. EtienneLescot commented on Nov 19, 2026

    @EtienneLescot
    Member

    Thanks for the detailed report, @shivamkumar359.

    The message you quote comes from the X11 window capture path, so the take seems to start on a window rather than on Entire screen. To find out why, could you share:

    1. The exact steps from launch: which source you click in the source picker, whether a window was selected in an earlier take, and when the error appears (on Record, or during the take).
    2. A diagnostics bundle saved right after it fails (Save Diagnostics), or the main.log file from OpenScreen's log folder under ~/.config/.
    3. Whether openscreen record --display 0 from a terminal records the whole screen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions