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

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Tue Dec 5 15:42:58 UTC 2017


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

--- Comment #1 from Olivier Fourdan <ofourdan at redhat.com> ---
I think we hit a corner case here.

Basically, when the gtk_window_resize(GTK_WINDOW(window), 1, 1); is issue, we
don't have CSD enabled, so 1x1 is a valid size.

Then the windos widget is unrealized, gtk_window_set_titlebar() is invoked and
enables CSD, which means that the decorations will be taken from the window
size.

So eventually, when we realize the window with its requested size of 1x1, the
client side decorations are substracted which leads to negative sizes.

-- 
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/20171205/cb5fc826/attachment.html>


More information about the wayland-bugs mailing list