Description:Usinggradia --screenshot=INTERACTIVE` fails with a generic error when attempting to capture a maximized or fullscreen window on X11. The same operation succeeds only when the window is restored to normal (non-maximized, non-fullscreen) state.
Environment:
| Field |
Value |
| Desktop Session |
X11 (not Wayland) |
| Display Server |
X.Org |
| Desktop Environment |
GNOME / Mutter (Zorin OS 18 based on Ubuntu) |
| Tool |
Gradia CLI (version unknown) |
| Affected Application |
Any GTK app (tested with gThumb image viewer) |
Steps to Reproduce:
- Open any GTK-based application (e.g.,
gthumb, gnome image viewer)
- Load an image or content
- Maximize the window (click title bar or press
Super+Up) OR put it in fullscreen (press F11)
- Run:
gradia --screenshot=INTERACTIVE
- Select the affected window from the picker
Actual Behavior:
Screenshot failed: g-io-error-quark: Screenshot failed (0)
Screenshot was cancelled or failed. Exiting.
Expected Behavior:
Interactive screenshot should successfully capture the selected portion maximized or fullscreen window, or gracefully degrade to full-screen capture if window-specific grab fails.
Window State Summary:
| Window State |
Result |
| Normal (restored) |
Works |
| Maximized |
Fails |
| Fullscreen |
Fails |
Possible Root Cause:
Picker's X11 window enumeration logic may not handle _NET_WM_STATE_MAXIMIZED_* or _NET_WM_STATE_FULLSCREEN properties correctly. Alternatively, the D-Bus portal call may timeout or reject these window states.
Sorry, I used AI to summarize the troubleshooting I tried into a format that developers might be more familiar with.
Thanks for your work on this great app!
Description:
Usinggradia --screenshot=INTERACTIVE` fails with a generic error when attempting to capture a maximized or fullscreen window on X11. The same operation succeeds only when the window is restored to normal (non-maximized, non-fullscreen) state.Environment:
Steps to Reproduce:
gthumb, gnome image viewer)Super+Up) OR put it in fullscreen (pressF11)gradia --screenshot=INTERACTIVEActual Behavior:
Screenshot failed: g-io-error-quark: Screenshot failed (0)
Screenshot was cancelled or failed. Exiting.
Expected Behavior:
Interactive screenshot should successfully capture the selected portion maximized or fullscreen window, or gracefully degrade to full-screen capture if window-specific grab fails.
Window State Summary:
Possible Root Cause:
Picker's X11 window enumeration logic may not handle
_NET_WM_STATE_MAXIMIZED_*or_NET_WM_STATE_FULLSCREENproperties correctly. Alternatively, the D-Bus portal call may timeout or reject these window states.Sorry, I used AI to summarize the troubleshooting I tried into a format that developers might be more familiar with.
Thanks for your work on this great app!