diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-11-01 15:30:11 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-11-01 15:30:11 +0000 |
| commit | 095ed29a7fe376beac31deae72ce6081c38302d2 (patch) | |
| tree | d3e3f237ddf5e35ea6ca3b9d204ecac267948267 /src | |
| parent | 7a9e9468e6857434755bc2d14ed43616bd628a05 (diff) | |
Add NULL check for _NET_WORKAREA property value.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5539 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 85a43def0..238f5a9b5 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -381,7 +381,7 @@ static void fl_init_workarea() { if (XGetWindowProperty(fl_display, RootWindow(fl_display, fl_screen), _NET_WORKAREA, 0, 4 * sizeof(unsigned), False, XA_CARDINAL, &actual, &format, &count, &remaining, - (unsigned char **)&xywh)) + (unsigned char **)&xywh) || !xywh) { fl_workarea_xywh[0] = 0; fl_workarea_xywh[1] = 0; |
