Opened 6 years ago

Closed 6 years ago

#1109 closed Bug Report (fixed)

initial window size for X11 in GTK is wrong

Reported by: Robin Gareus Owned by: David Robillard
Priority: major Component: Suil
Keywords: Cc:


X11 realizes the window asynchronously. The initial gtk size-allocate is not forwarded to the plugin because x_window_is_valid() in x11_in_gtk2 returns false.

The swallowed plugin widget has the wrong initial size (usually the plugin's minimum size, instead of the container's size).

Attached patch solves this.

To reproduce: open a Plugin GUI of a resizable X11 plugin in Ardour. Resize the window. close the window. then re-open it. Ardour restores the size of its container window, but the child has the minimum size.

Attachments (1)

suil_x11_size_request.diff (1.1 KB) - added by Robin Gareus 6 years ago.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by Robin Gareus

Attachment: suil_x11_size_request.diff added

comment:1 Changed 6 years ago by David Robillard

Resolution: fixed
Status: newclosed

Applied in 4c4fb25/suil, thanks.

Note: See TracTickets for help on using tickets.