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