summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_x.cxx3
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;