summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/X11/Fl_X11_Window_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/X11/Fl_X11_Window_Driver.cxx b/src/drivers/X11/Fl_X11_Window_Driver.cxx
index fc278c553..d0443ae1b 100644
--- a/src/drivers/X11/Fl_X11_Window_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_Window_Driver.cxx
@@ -132,7 +132,7 @@ void Fl_X11_Window_Driver::take_focus()
Fl_X *i = Fl_X::i(pWindow);
if (!Fl_X::ewmh_supported())
pWindow->show(); // Old WMs, XMapRaised
- else if (i->x) // New WMs use the NETWM attribute:
+ else if (i && i->x) // New WMs use the NETWM attribute:
Fl_X::activate_window(i->xid);
}