X window system error when trying to maximize window
I Get X window system error when trying to maximize a window. This happened in lxde and i3 with gtk4-demo.
How to reproduce:
- Open
gtk4-demo
- Right click on headerbar -> Maximize
Result: demo crashes with X window error
(gtk4-demo:24151): Gdk-ERROR **: 14:50:49.367: The program 'gtk4-demo' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 922 error_code 3 request_code 12 (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.)