Oct 08 15:00:25 stas-hp-laptop gnome-shell[20923]: The program 'gnome-shell' received an X Window System error.
                                                   This probably reflects a bug in the program.
                                                   The error was 'BadWindow (invalid Window parameter)'.
                                                     (Details: serial 67542 error_code 3 request_code 18 (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.)

...

Oct 08 15:00:47 stas-hp-laptop systemd-coredump[22939]: Process 20923 (gnome-shell) of user 1000 dumped core.
                                                        
                                                        Stack trace of thread 20923:
                                                        #0  0x00007fc92da26cd2 n/a (libglib-2.0.so.0)
                                                        #1  0x00007fc92da2c421 g_log_writer_default (libglib-2.0.so.0)
                                                        #2  0x00007fc92da26d72 g_log_structured_array (libglib-2.0.so.0)
                                                        #3  0x00007fc92da2715a g_log_structured (libglib-2.0.so.0)
                                                        #4  0x00007fc92b782454 n/a (libgdk-3.so.0)
                                                        #5  0x00007fc92b78fe05 n/a (libgdk-3.so.0)
                                                        #6  0x00007fc92ac376ed _XError (libX11.so.6)
                                                        #7  0x00007fc92ac34617 n/a (libX11.so.6)
                                                        #8  0x00007fc92ac346d5 n/a (libX11.so.6)
                                                        #9  0x00007fc92ac355e8 _XReply (libX11.so.6)
                                                        #10 0x00007fc927f0e204 XIGetClientPointer (libXi.so.6)
                                                        #11 0x00007fc92b784701 n/a (libgdk-3.so.0)
                                                        #12 0x00007fc92bec83dc meta_cursor_tracker_get_pointer (libmutter-1.so.0)
                                                        #13 0x00007fc92e2eed5f shell_global_get_pointer (libgnome-shell.so)
                                                        #14 0x00007fc92e2eedbd shell_global_sync_pointer (libgnome-shell.so)
                                                        #15 0x00007fc9283941c8 ffi_call_unix64 (libffi.so.6)
                                                        #16 0x00007fc928393c2a ffi_call (libffi.so.6)
                                                        #17 0x00007fc92c9b2cbb n/a (libgjs.so.0)
                                                        #18 0x00007fc92c9b4617 n/a (libgjs.so.0)
                                                        #19 0x000024cd7fafa810 n/a (n/a)
                                                        #20 0x000055a703d0f838 n/a (n/a)
                                                        #21 0x000024cd803ba039 n/a (n/a)
