Can't area-screenshot things that disappear on focus loss
Affected version
GNOME Shell 40.3
Arch Linux
Wayland
Bug summary
Triggering a screenshot results in the focused application losing focus.
In the case of full or window screenshots, the screenshotting seems to be quick enough to grab the image before the application has time to update its windows.
However, in the case of area screenshots it's impossible to screenshot things that disappear on focus loss, such as tooltips or Grafana's hover-over-graph function.
Steps to reproduce
- Trigger a tooltip, like on most of Nautilus' headerbar buttons.
- Attempt to grab this tooltip in an area screenshot.
The tooltip will disappear when modifier keys are pressed, so either rebind the area screenshot shortcut to a single key press or press the modifiers before triggering the tooltip.
What happened
The tooltip disappears when screenshot area selection starts.
What did you expect to happen
The application should remain oblivious to any input until screenshotting is done, allowing the tooltip to be grabbed.
Alternatively, the framebuffer could be frozen the moment area selection starts, which might be even better UX.