'splash' window is transparent in GTK 4.15.5 but fine in 4.14.5

I create a window for a splash screen. It looks fine in GTK 4.14.5 (and earlier) but is completely transparent in 4.15.5.
Does anyone know what might be the cause and what I can do to fix it?

Michael

…edit It does appear on Wayland, so this is an Xorg specific issue.

(Fedora 41 beta is using 4.15.5)

  <object class="GtkWindow" id="WID_Splash">
    <property name="decorated">False</property>
    <child>
      <object class="GtkBox">
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkLabel">
            <property name="css-classes">splash_name</property>
            <property name="label">HP8970 Companion</property>
            <property name="margin-bottom">15</property>
            <property name="margin-top">15</property>
          </object>
        </child>
        <child>
          <object class="GtkSeparator"/>
        </child>
        <child>
          <object class="GtkLabel" id="WID_lbl_version">
            <property name="label">June 2024</property>
          </object>
        </child>
        <child>
          <object class="GtkLabel">
            <property name="css-classes">license</property>
            <property name="label">Copyright © 2024  Michael G. Katzmann

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied.

See the License for the specific language governing permissions and
limitations under the License</property>
            <property name="margin-bottom">15</property>
            <property name="margin-end">15</property>
            <property name="margin-start">15</property>
            <property name="margin-top">15</property>
          </object>
        </child>
      </object>
    </child>
  </object>

To answer my own question …
I think this is a problem with the ngl renderer with my hardware.
https://blog.gtk.org/2024/01/28/new-renderers-for-gtk/

If I use the environment variable GSK_RENDERER=gl I have no problem.
The hardware is probably ~3 years old, so not what I would call ‘old hardware’ …

Hi,

It’s a known bug : X11 backend on gl/ngl broken since 523cd0df "glcontext: Add a surface_attached flag" (#6930) · Issues · GNOME / gtk · GitLab

Already fixed, just update to gtk-4.16 :slight_smile:

1 Like

Yes, Fedora 41 beta just updated to 4.16.1 and it indeed fixed the issue. thanks.

1 Like