[Wayland-bugs] [Bug 791081] New: gtk_widget_realize() throws In pixman_region32_init_rect: Invalid rectangle passed

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Fri Dec 1 13:00:12 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=791081

            Bug ID: 791081
           Summary: gtk_widget_realize() throws In
                    pixman_region32_init_rect: Invalid rectangle passed
    Classification: Platform
           Product: gtk+
           Version: 3.22.x
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Widget: Other
          Assignee: gtk-bugs at gtk.org
          Reporter: stransky at redhat.com
        QA Contact: gtk-bugs at gtk.org
                CC: daniel at fooishbar.org, mclasen at redhat.com,
                    ofourdan at redhat.com, rob at robster.org.uk,
                    wayland-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 364749
  --> https://bugzilla.gnome.org/attachment.cgi?id=364749&action=edit
Simple testcase

Seting custom titlebar throws an error when window size is smaller than CSD
decoration size - Gtk creates opaque surface with negative size then:

This simply sequence causes that:

gtk_window_resize(GTK_WINDOW(window), 1, 1);
gtk_widget_realize(window);
gdk_flush();

gtk_widget_unrealize(window);
gtk_window_set_titlebar(GTK_WINDOW(window), gtk_fixed_new());
gtk_widget_realize(window);

That affects Firefox when the main window has a minimal widget size and the
main window is configured before it's shown.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20171201/1aab6b0a/attachment.html>


More information about the wayland-bugs mailing list