Also need to check addr

This commit is contained in:
Cjacker 2017-10-25 15:29:29 +08:00
parent 9379f19c19
commit b7ad2d99e0

View File

@ -836,9 +836,9 @@ namespace detail
i->second->pos = pos;
}
auto addr = i->second;
XPoint spot;
XVaNestedList list;
if(addr->input_context) {
if(addr && addr->input_context) {
XPoint spot;
XVaNestedList list;
spot.x = pos.x;
spot.y = pos.y + addr->size.height;
list = ::XVaCreateNestedList(0, XNSpotLocation, &spot,