gtk_widget_realize() throws In pixman_region32_init_rect: Invalid rectangle passed
Submitted by Martin Stransky
Link to original bug (#791081)
Description
Created attachment 364749 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.
Attachment 364749, "Simple testcase":
test6.c
Version: 3.22.x