diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-11-15 00:44:13 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-11-15 00:44:13 +0000 |
| commit | b6a66645e02ac47355e3d9981d9df204a0e86e4b (patch) | |
| tree | c49afb3ff6fd02bacba9fae00f0b91ccbdbacc0c /src | |
| parent | 725efb3569ac50ce5dd8affcf19616f24a8150a7 (diff) | |
Reject invalid workarea rectangle.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 238f5a9b5..e37d1ab7b 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -381,7 +381,8 @@ 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) || !xywh) + (unsigned char **)&xywh) || !xywh || !xywh[2] || + !xywh[3]) { fl_workarea_xywh[0] = 0; fl_workarea_xywh[1] = 0; |
