Skip to content

gdk: Subtract base size when checking aspect ratio

Vlad Zahorodnii requested to merge zzag/gtk:master-subtract-base-size into master

According to the ICCCM spec [1], one should subtract the base size from the window size before checking that the aspect ratio falls in range.

This change fixes shrinking Firefox Picture-in-Picture windows when running KDE Plasma (with KWin as the window manager).

[1] https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.2.3

Merge request reports