Firefox PIP: gtk_window_set_geometry_hints() and GDK_HINT_ASPECT does not work with CSD decorated windows
When set GDK_HINT_ASPECT is does not work with CSD decorated windows, because the GDK_HINT_ASPECT is applied to window size + decorations and not to window content area.
When the window is resized, content area does not stay fixed.
There's no way how to keep fixed aspect ratio of window content which is what we actually need. See the attached example. This breaks Firefox PIP window implementation on Linux (https://bugzilla.mozilla.org/show_bug.cgi?id=1584790).
test2.c A simple testcase.
When I want content area 600 x 300 (Firefox PIP window for video playback) I see to set aspect 652.0 / 352.0 (as CSD decoration size is 52 pixels).
This works for static picture but it breaks when window is resized.