- status: open --> pending-fixed
- Group: -->
- Priority: -->
The gtk implementation of wxWidgets provides several different backends that tailor its interaction with the display screen. When run under wayland, as opposed to X11, it defaults to backend GDK_BACKEND=wayland. Unfortunately this means that the plot window is not always refreshed when a new plot is drawn. The un-refreshed series of plot commands backs up, unseen, until the plot window is given focus or handles a mouse event. Then the plot window suddenly updates to the most recent plot.
This undesired behavior can be avoided by setting environmental variable GDK_BACKEND=x11, but it would be better for the program to handle it without requiring user intervention.
Adding a Refresh() command when running under wayland seems to fix this.