aboutsummaryrefslogtreecommitdiff
path: root/Sgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'Sgraph.c')
-rw-r--r--Sgraph.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Sgraph.c b/Sgraph.c
index e02bf88..3b841ee 100644
--- a/Sgraph.c
+++ b/Sgraph.c
@@ -187,6 +187,9 @@ Realize(Widget w, XtValueMask *mask, XSetWindowAttributes *attr)
{
SgraphWidget sw = (SgraphWidget)w;
+ if (XtIsRealized(w))
+ return;
+
XtCreateWindow(w, InputOutput, CopyFromParent, *mask, attr);
sw->sgraph.backBuf = XdbeAllocateBackBufferName(XtDisplay(w),
XtWindow(w), XdbeBackground);