Autohide residual window keeps old geometry after monitor layout change (thin gray bar on external screen in fullscreen)
Environment
- Distribution: Ubuntu 26.04.1 LTS (resolute)
- Xfce version: 4.20
- xfce4-panel: 4.20.7
- xfwm4: 4.20.0
- Session: X11
- Hardware: ThinkPad with Intel Iris Xe (modesetting + glamor)
- Internal display: eDP-1 1400x900
- External display: DP-3-1 1920x1080 (connected via DisplayPort dock/hub)
Problem
When an application is put in fullscreen on the external monitor, a thin gray residual bar (~640×3 px) appears on the external screen.
This bar:
- is fixed (does not scroll)
- is visible in all applications (Firefox, Slack, etc.)
- is captured by screenshots
- only appears on the external monitor and only while an application is fullscreen
- disappears when the window is un-fullscreened or when the panel is restarted (
xfce4-panel -r)
Investigation
xwininfo shows an unmapped xfce4-panel window with the following geometry:
Text
642x3+379+897
This geometry matches a centered bottom panel on a 1400×900 screen (the internal display alone).
It strongly suggests that the autohide detection window kept the geometry from the previous single-monitor layout after the external monitor was connected.
The affected panel is configured as follows:
- Horizontal
- 1 row, 48 px height
- Length: 192 px with “Automatically increase the length”
- Automatically hide the panel: Intelligently
- Output: Automatic (before changing it)
- Does not span monitors
Additional notes
- The issue did not occur under Xubuntu 24.04 / Xfce 4.18 with the same hardware and dock.
- Restarting the panel (
xfce4-panel -r) temporarily fixes it. - Setting the panel Output to Primary improves multi-monitor behaviour in general, but does not prevent the residual autohide window from sometimes keeping stale geometry after docking/undocking.
Expected behaviour
The autohide residual window should update its geometry when the monitor layout changes (especially when connecting/disconnecting a dock).
Actual behaviour
The residual window can keep the geometry of the previous layout and appear as a thin gray bar on the external screen during fullscreen.
