Fix "assertion 'GTK_IS_WINDOW (window)' failed"

* src/gtkutil.c (xg_frame_set_size_and_position): Remove a
gtk_window_resize call which used a wrong value type
(GdkX11Window instead of GtkWindow).  The original motivation
for that line seems to be fixed by later changes (bug#80662).
This commit is contained in:
Dmitry Gutov 2026-05-22 06:46:47 +03:00
parent 98348a0bdc
commit 2936b36164

View file

@ -1352,8 +1352,6 @@ xg_frame_set_size_and_position (struct frame *f, int width, int height)
gdk_window_move_resize (gwin, x, y, outer_width, outer_height);
if (FRAME_PARENT_FRAME (f))
{
/* Record the dimensions for GTK to remember after remapping. */
gtk_window_resize (GTK_WINDOW (gwin), outer_width, outer_height);
/* Resize all inner widgets and Cairo surface right away so the
next redisplay drawing isn't clipped to the old size. */
GtkAllocation alloc = {0, 0, outer_width, outer_height};