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
This commit is contained in:
parent
fa9a33eaee
commit
84ef7615d7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user