Created attachment 2169 [details] Get window size instead of allocation. When running with GTK_CSD=1 to enable client side decoration, the main window gets larger with every restart of the program. This appears to be due to using gtk_widget_get_allocation, which apparently includes decoration space. The correct call would be gtk_window_get_size, which returns an appropriate size for the subsequent gtk_window_set_default_size. Attached patch fixes the main window, but there are presumably others.
I couldn't reproduce this myself, since I use KDE and GTK_CSD has no effect. But there were no unwanted side-effects of the patch so I have pushed it to git now. Thanks.
This problem affects all top level windows (whose sizes are saved). I was kind of hoping you would know what they all are, but I guess I'll start tracking down the others.
Created attachment 2172 [details] Get and set window sizes and positions compatible with CSD. This should take care of the rest of the top-level windows. Also, the same problem affects saved positions. Also, a number of calls to gtk_widget_set_size_request had not been converted to gtk_window_set_default_size, so I changed those.
pushed to git. Thanks!