Request backing store for X11 plot windows. When supported by the X server

windows are redrawn vey quickly without replotting.
This commit is contained in:
Giles Atkinson 2022-01-26 19:01:50 +00:00 committed by Holger Vogt
parent f4285384e7
commit 6494befb2f
1 changed files with 3 additions and 2 deletions

View File

@ -572,8 +572,9 @@ X11_NewViewport(GRAPH *graph)
DEVDEP(graph).window = XtWindow(DEVDEP(graph).view);
DEVDEP(graph).isopen = 0;
w_attrs.bit_gravity = ForgetGravity;
XChangeWindowAttributes(display, DEVDEP(graph).window, CWBitGravity,
&w_attrs);
w_attrs.backing_store = Always;
XChangeWindowAttributes(display, DEVDEP(graph).window,
CWBitGravity | CWBackingStore, &w_attrs);
int linewidth, gridlinewidth;
/* If we had a previous graph, e.g. after zooming, we