Strange window decorations/contents shift -- at random I see it normal and odd after app start? X11/Gtk Debian Testing

Any one having a clue how this is possible, happens about every 2nd time only after restart.
Looks like the window contents area is shifted off the window.
Function seam normal. See correctly decorated windows next to it. Same app.

It is only a gtk_grid in a window with a few buttons and a canvas.

Can you check for an unbalanced Cairo::Context::save \ Cairo::Context::restore in the on_draw of the Lissajous (?) plot custom widget at the center? Usually this will have disastrous consequences so may be you can check for any transforms applied to the cairo context without saving it first (and of course restoring it once you’re done).

1 Like

I am not aware of any and just double checked. Everything functions well, just looks funny.

There are only two cairo_safe and matching restore calls:

If you like to see yourself: search the cairo_save/restore. And another set in the related header/class.

Also, won’t that happen then always, but only occasionally? More frequent on a older X11 system.