diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-03-18 21:48:23 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-03-18 21:48:23 +0000 |
| commit | 84ef7615d70955abe9c15377fc1c9358ff2987b1 (patch) | |
| tree | 9b071e973cd155c5cd19d78e1f9d5197cc9cb5cb /src | |
| parent | fa9a33eaeeddb85a6afedc2d02d0d67f290b0822 (diff) | |
Fix potential crash in take_focus() (Linux).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11365 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/X11/Fl_X11_Window_Driver.cxx | 2 |
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); } |
