Reject invalid workarea rectangle.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
725efb3569
commit
b6a66645e0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user