Subject: 29.0.50; PGTK: Gdk-Warnings with frame parameter (visibility . nil)

From: Stephen Berman <[email-masked]>
Date: Mon, 07 Feb 2022 23:34:19 +0100

0. emacs -Q
1. Evaluate (setq frame (make-frame '((visibility . nil))))
=> In the shell an endless stream of warnings like this is emitted:

emacs-pgtk:20385): Gdk-CRITICAL **: 23:16:22.051: gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed

After evaluating (make-frame-visible frame) the warnings stop.  In a
non-PGTK GTK3 build the above recipe produces no warning.

In GNU Emacs 29.0.50 (build 6, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.17.4)
 of 2022-02-07 built on strobelfs2
Repository revision: 919cbe2b7da2302a66a15a4611eef8a215bd5755
Repository branch: master
System Description: Linux From Scratch r11.0-115

Configured using:
 'configure --with-pgtk --with-xwidgets 'CFLAGS=-Og -g3'
 PKG_CONFIG_PATH=/opt/qt5/lib/pkgconfig'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PGTK PNG
RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM
XWIDGETS GTK3 ZLIB