aboutsummaryrefslogtreecommitdiff
path: root/Sgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'Sgraph.c')
-rw-r--r--Sgraph.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Sgraph.c b/Sgraph.c
index 7cddf22..0059113 100644
--- a/Sgraph.c
+++ b/Sgraph.c
@@ -114,6 +114,11 @@ Initialize(Widget request, Widget w, ArgList args, Cardinal *nargs)
static void
Resize(Widget w)
{
+ if (!XtIsREalized(w))
+ return;
+
+ winwidth = w->core.width;
+ winheight = w->core.height;
}
static void