Bug: https://gitlab.gnome.org/GNOME/gimp/-/issues/6711
Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6184
Origin: 3.24.39, commit:
3e3266dce4a8aed453f296ca8043e3574ff29f63
Gbp-Pq: Name GdkWindow-Check-for-offscreen-windows-in-set_transient_fo.patch
gdk_window_set_transient_for (GdkWindow *window,
GdkWindow *parent)
{
+ if (!gdk_window_is_offscreen (window) &&
+ parent != NULL &&
+ gdk_window_is_offscreen (parent))
+ {
+ return;
+ }
+
window->transient_for = parent;
GDK_WINDOW_IMPL_GET_CLASS (window->impl)->set_transient_for (window, parent);