Browse Source

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

windows are redrawn vey quickly without replotting.
pre-master-46
Giles Atkinson 4 years ago
committed by Holger Vogt
parent
commit
6494befb2f
  1. 5
      src/frontend/plotting/x11.c

5
src/frontend/plotting/x11.c

@ -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

Loading…
Cancel
Save