Bug - Crash while grabbing the screenshot of current window
OS - Linux Mint Cinnamon (Linux 5.4.0-77-generic)
Gnome screenshot tool crashing when clicked Take Screenshot of the current window.
Here's the terminal output:
(gnome-screenshot:6779): Gdk-ERROR **: 12:37:52.443: The program 'gnome-screenshot' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 20877 error_code 3 request_code 15 (core protocol) minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)