aboutsummaryrefslogtreecommitdiff
path: root/Sgraph.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-13 23:45:01 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-13 23:45:01 +0000
commitc158fb4402db60ad34e1ec5cc1e50286b543aefb (patch)
treee9c5fd017db6104a15cb3cf78470be402132f5ef /Sgraph.c
parent0fb7f118d4da3b048750f484ed6f9e211fbeca27 (diff)
size change
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